Git Product home page Git Product logo

gromp's People

Contributors

dependabot[bot] avatar wilhelmagren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

userdoom38

gromp's Issues

No real api testing exists

Currently only some functional unit tests for the League hook exists.

We need to implement some mocked API tests.

Look into how unittest.Mock works.

Endpoints missing as properties for League hook

A number of NamedEndpoints are not implemented as property for the League hook. These are:

  • ChampionMasterv4
  • Championv3
  • Clashv1
  • LeagueExpv4
  • Leaguev4
  • LolChallengesv1
  • LolStatusv4
  • Tournamentv4

Add these as properties to finalize the League implementations.

Current relase is broken, "cannot import name 'handler' from partially initialized module 'gromp'"

Python 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gromp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/juice/.local/lib/python3.10/site-packages/gromp/__init__.py", line 28, in <module>
    from gromp import handler
ImportError: cannot import name 'handler' from partially initialized module 'gromp' (most likely due to a circular import) (/home/juice/.local/lib/python3.10/site-packages/gromp/__init__.py)

We have circular imports... but why?

The handler module does not depend on any imports from any other submodules of the lib.

Neither does the url submodule...

Should there be no imports in the __init__ file?

Update readme for soon-to-come version bump 0.2 โ†’ 0.3

Some aspects of the root readme are incorrect/deprecated following the latest version. Some errors:

  • Main information under Gromp title.
  • Setup, local installation is incorrect
  • Example usage, utils functions are renamed and general hook behaviour is changed.

Some things that should be added:

  • Section about retrieving the Riot Games developer API token
  • Status badges for pipelines/workflows
  • Status badges for e.g. code-style, loc, etc..

๐Ÿ‘

Implement unit tests before version bump 0.2 โ†’ 0.3

Currently codecov is set up but no tests are implemented. That means we get 0% code coverage.

To implement unit tests we need to answer tree things:

  • Define granularity of testing.
  • Should the structure following the same as the main module?
  • How do we mock API calls during testing using unittest module?

๐Ÿƒ Here's a water buffalo, thanks.

Current release is broken, "no module named 'gromp.endpoint'"

When installing through PyPI and attempting to import gromp you get the following traceback:

Python 3.10.7 (main, Nov 24 2022, 19:45:47) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gromp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/juice/.local/lib/python3.10/site-packages/gromp/__init__.py", line 28, in <module>
    from gromp.endpoint import *
ModuleNotFoundError: No module named 'gromp.endpoint'

I suspect this has to do with how submodules are imported, relative to __init__.py files. A fix is on the way in a PR.

Otherwise, what could be the problem? Everything works locally and running unittests work...

League API changes

Riot has updated their developer API for a number of endpoints.

League of Legends


These changes need to be made to the current implementation to be up to date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.