Skip to content

Commit

Permalink
fix(testing): tests now pass with refactored urls
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-s committed Apr 11, 2024
1 parent b49c54c commit 6700aeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_low_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"validationStatus",
}

MOCK_URL = "https://deeporigin.mock/"
MOCK_URL = "https://deeporigin.mock/nucleus-api/api/"
DB_NAME = "db-dna"
ROW_NAME = "dna-1"
AUTH_DOMAIN = get_value()["auth_domain"]
Expand All @@ -71,9 +71,11 @@
raise RuntimeError("No files in database, cannot run tests")
FILE_ID = file_ids[0]
being_mocked = False
print("Testing against live instance")
else:
FILE_ID = "_file:placeholder"
being_mocked = True
print("Using mocked responses")


@pytest.fixture
Expand All @@ -90,7 +92,7 @@ def mocker():

tokens = read_cached_do_api_tokens()

with requests_mock.Mocker(real_http=True) as m:
with requests_mock.Mocker(real_http=False) as m:
m.post(
f"{MOCK_URL}DescribeRow",
json={"data": data},
Expand Down

0 comments on commit 6700aeb

Please sign in to comment.