Skip to content

Conversation

@ibhuiyan17
Copy link
Owner

No description provided.

ibhuiyan17 and others added 30 commits March 28, 2020 16:23
…_ files so v1 and v2 have their own versions of 'router'.
…d to change them to work with new implementation
* add invoke as dev dependency

* invoke tasks

* add invoke check cmd

update pipenv scripts and make commands

* optional --diff

* lint and test

* update docs

remove Flask as a project requirement
add invoke commands

* add lint and test to Pipenv scripts, update docs
* remove flask

* sort dependencies

* add coveralls badge

* add coveralls

* update make test to create coverage reports

* split script commands, add coveralls upload step

* remove unneeded modules and imports

* regenerate lockfile
* lint fixes

* re-enable CI failure on lint warnings

* edit lint config
  * white list pydantic
  * allow fstring logging
  * allow TODO
  * temporarily allow duplicate code
Co-authored-by: Rostislav Svoboda <[email protected]>
These are required to be able to test asyncio functionality, as well as making ASGI test clients play nice asynchronously.
- Move test fixtures into tests/fixtures.py
- Update test fixtures to mock aiohttp.ClientSession.get, instead of requests.get
- Add a context manager to replace the global httputils.client_session with an AsyncMock
- Misc. cleanup
I didn't see this file when I first added the new fixtures.
One can still define a separate responder function here, but since this is the
only response defined for the tests thus far, this seems like a reasonable default.
@ibhuiyan17 ibhuiyan17 merged commit 8751f7e into ibhuiyan17:master Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants