Skip to content

Commit 2dbd944

Browse files
author
Review
committed
fix: add NC_APP_ASYNC/NC_CLIENT_ASYNC aliases in test conftest
1 parent 3324989 commit 2dbd944

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
_TEST_FAILED_INCREMENTAL: dict[str, dict[tuple[int, ...], str]] = {}
1212

1313
NC_CLIENT = None if environ.get("SKIP_NC_CLIENT_TESTS", False) else Nextcloud()
14+
NC_CLIENT_ASYNC = NC_CLIENT
1415
if environ.get("SKIP_AA_TESTS", False):
1516
NC_APP = None
17+
NC_APP_ASYNC = None
1618
else:
1719
NC_APP = NextcloudApp(user="admin")
1820
if "app_api" not in asyncio.get_event_loop().run_until_complete(NC_APP._session.capabilities):
1921
NC_APP = None
22+
NC_APP_ASYNC = NC_APP
2023
if NC_CLIENT is None and NC_APP is None:
2124
raise EnvironmentError("Tests require at least Nextcloud or NextcloudApp.")
2225

0 commit comments

Comments
 (0)