Skip to content

Commit

Permalink
Upgrade tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Aug 9, 2023
1 parent 8574209 commit 7b9f7a2
Show file tree
Hide file tree
Showing 24 changed files with 1,618 additions and 1,571 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include *.md *.rst *.txt
include *.rst *.txt
graft tests
10 changes: 8 additions & 2 deletions asyncprawcore/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,16 @@ def __init__(
authenticator: BaseAuthenticator,
*,
post_refresh_callback: Optional[
Callable[["Authorizer"], Awaitable[None]]
Union[
Callable[["Authorizer"], Awaitable[None]],
Callable[["Authorizer"], None],
]
] = None,
pre_refresh_callback: Optional[
Callable[["Authorizer"], Awaitable[None]]
Union[
Callable[["Authorizer"], Awaitable[None]],
Callable[["Authorizer"], None],
]
] = None,
refresh_token: Optional[str] = None,
) -> None:
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ line-length = 88
[tool.isort]
profile = 'black'
skip_glob = '.venv*'

[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = "ignore::DeprecationWarning"
testpaths = "tests"
4 changes: 0 additions & 4 deletions pytest.ini

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ci": ["coveralls"],
"lint": ["black", "flake8", "isort", "pre-commit", "pydocstyle", "flynt"],
"test": [
"aiofiles",
"aiofiles ==23.*",
"mock ==4.*",
"pytest ==7.*",
"pytest-asyncio ==0.18.*",
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""asyncprawcore Test Suite."""
"""Async prawcore Test Suite."""

This file was deleted.

209 changes: 0 additions & 209 deletions tests/cassettes/Session_request__cloudflair_connection_timed_out.json

This file was deleted.

Loading

0 comments on commit 7b9f7a2

Please sign in to comment.