Skip to content

Commit

Permalink
rename upload file mock class
Browse files Browse the repository at this point in the history
classes starting with 'Test' produce a pytest warning
if they have a __init__ method.
Renaminig it because it is no test class
  • Loading branch information
lioman committed May 26, 2020
1 parent bee8ad2 commit ae96c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ def test_queryparams():
assert QueryParams(q) == q


class TestUploadFile(UploadFile):
class UploadFileTest(UploadFile):
spool_max_size = 1024


@pytest.mark.asyncio
async def test_upload_file():
big_file = TestUploadFile("big-file")
big_file = UploadFileTest("big-file")
await big_file.write(b"big-data" * 512)
await big_file.write(b"big-data")
await big_file.seek(0)
Expand Down
1 change: 1 addition & 0 deletions tests/test_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def test_graphiql_not_found():
assert response.status_code == 404
assert response.text == "Not Found"


def test_graphiql_is_overwritten():
"""
The default graphiql template could be overwritten
Expand Down

0 comments on commit ae96c32

Please sign in to comment.