Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
strategy:
matrix:
pyver: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu, macos]
os: [ubuntu, macos, windows]
#include:
# - pyver: pypy3
# os: ubuntu
Expand Down Expand Up @@ -88,12 +88,13 @@ jobs:
path: requirements-dev.txt
- name: Install JS dependencies
run: grablib
env:
PYTHONIOENCODING: 'utf-8'
- name: Run unittests
run: pytest
env:
COLOR: 'yes'
run: |
pytest
python -m coverage xml
- run: python -m coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ markers = boxed: mark tests as boxed
testpaths = tests/
filterwarnings =
error
ignore:The loop argument is deprecated:DeprecationWarning:asyncio.base_events
xfail_strict = true

[flake8]
Expand Down
8 changes: 4 additions & 4 deletions tests/test_runserver_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ async def test_aux_app(tmpworkdir, aiohttp_client):
'test.txt': 'test value',
})
app = create_auxiliary_app(static_path='.')
cli = await aiohttp_client(app)
r = await cli.get('/test.txt')
assert r.status == 200
text = await r.text()
async with await aiohttp_client(app) as cli:
async with cli.get('/test.txt') as r:
assert r.status == 200
text = await r.text()
assert text == 'test value'


Expand Down