Skip to content

Commit

Permalink
Update location
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Aug 2, 2024
1 parent c57d3c2 commit 873142a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 6 additions & 0 deletions tests/scripts/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
USER_TOKENS = {
"admin": "1b9436200001f2eaf57cd77db075cbb60a49a00a",
"readerstudy": "01614a77b1c0b4ecd402be50a8ff96188d5b011d",
"demop": "00aa710f4dc5621a0cb64b0795fbba02e39d7700",
"archive": "0d284528953157759d26c469297afcf6fd367f71",
}
9 changes: 2 additions & 7 deletions tests/scripts/create_test_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
from knox.models import AuthToken
from knox.settings import CONSTANTS

from .constants import USER_TOKENS

logger = logging.getLogger(__name__)

DEFAULT_USERS = [
Expand All @@ -55,13 +57,6 @@
"archive",
]

USER_TOKENS = {
"admin": "1b9436200001f2eaf57cd77db075cbb60a49a00a",
"readerstudy": "01614a77b1c0b4ecd402be50a8ff96188d5b011d",
"demop": "00aa710f4dc5621a0cb64b0795fbba02e39d7700",
"archive": "0d284528953157759d26c469297afcf6fd367f71",
}


def run():
"""Creates the main project, demo user and demo challenge."""
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from httpx import AsyncHTTPTransport, HTTPStatusError, HTTPTransport

from tests.scripts.create_test_fixtures import USER_TOKENS
from tests.scripts.constants import USER_TOKENS

ADMIN_TOKEN = USER_TOKENS["admin"]
READERSTUDY_TOKEN = USER_TOKENS["reader_study"]
Expand Down

0 comments on commit 873142a

Please sign in to comment.