Skip to content

Commit

Permalink
ASP-2438 code review
Browse files Browse the repository at this point in the history
add comments explaining the use of the fixture startup_event_force
  • Loading branch information
fschuch committed Jan 4, 2023
1 parent c6fec61 commit 2c6e84c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Expand Up @@ -14,6 +14,8 @@
from jobbergate_api.apps.permissions import Permissions
from jobbergate_api.storage import database, fetch_instance

# Force the async event loop at the app to begin.
# Since this is a time consuming fixture, it is just used were strict necessary.
pytestmark = pytest.mark.usefixtures("startup_event_force")


Expand Down
Expand Up @@ -18,6 +18,8 @@
from jobbergate_api.apps.permissions import Permissions
from jobbergate_api.storage import database

# Force the async event loop at the app to begin.
# Since this is a time consuming fixture, it is just used were strict necessary.
pytestmark = pytest.mark.usefixtures("startup_event_force")


Expand Down
Expand Up @@ -16,6 +16,8 @@
from jobbergate_api.apps.permissions import Permissions
from jobbergate_api.storage import database

# Force the async event loop at the app to begin.
# Since this is a time consuming fixture, it is just used were strict necessary.
pytestmark = pytest.mark.usefixtures("startup_event_force")


Expand Down
2 changes: 2 additions & 0 deletions jobbergate-api/jobbergate_api/tests/test_pagination.py
Expand Up @@ -12,6 +12,8 @@
from jobbergate_api.pagination import Pagination, Response, package_response
from jobbergate_api.storage import database

# Force the async event loop at the app to begin.
# Since this is a time consuming fixture, it is just used were strict necessary.
pytestmark = pytest.mark.usefixtures("startup_event_force")


Expand Down
2 changes: 2 additions & 0 deletions jobbergate-api/jobbergate_api/tests/test_storage.py
Expand Up @@ -10,6 +10,8 @@
from jobbergate_api.metadata import metadata
from jobbergate_api.storage import build_db_url, database, sort_clause

# Force the async event loop at the app to begin.
# Since this is a time consuming fixture, it is just used were strict necessary.
pytestmark = pytest.mark.usefixtures("startup_event_force")


Expand Down

0 comments on commit 2c6e84c

Please sign in to comment.