Skip to content

Commit 65e1155

Browse files
committed
Update tests with new default refcode
1 parent 35d3171 commit 65e1155

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pydatalab/tests/routers/test_samples.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_new_sample_with_relationships(client, complicated_sample):
161161
assert response.status_code == 201, response.json
162162
assert response.json["status"] == "success"
163163
new_refcode = response.json["sample_list_entry"]["refcode"]
164-
assert new_refcode.startswith("grey:")
164+
assert new_refcode.startswith("test:")
165165
assert response.json["sample_list_entry"]["item_id"] == complicated_sample.item_id
166166

167167
response = client.get(
@@ -259,7 +259,7 @@ def test_saved_sample_has_new_relationships(client, default_sample_dict, complic
259259
f"/get-item-data/{default_sample_dict['item_id']}",
260260
)
261261
new_refcode = response.json["item_data"]["refcode"]
262-
assert new_refcode.startswith("grey:")
262+
assert new_refcode.startswith("test:")
263263

264264
assert response.json
265265

pydatalab/tests/test_config.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ def test_config_override():
4141

4242

4343
def test_validators():
44-
# check GitHub org IDs are coerced into strings
45-
config = ServerConfig(GITHUB_ALLOW_LIST=[123], IDENTIFIER_PREFIX="test")
46-
assert config.GITHUB_ALLOW_LIST[0] == "123"
47-
4844
# check that prefix must be set
4945
with pytest.warns():
50-
config = ServerConfig(IDENTIFIER_PREFIX=None)
46+
_ = ServerConfig(IDENTIFIER_PREFIX=None)
5147

5248
# check bad prefix
5349
with pytest.raises(RuntimeError):
54-
config = ServerConfig(IDENTIFIER_PREFIX="this prefix is way way too long")
50+
_ = ServerConfig(IDENTIFIER_PREFIX="this prefix is way way too long")

0 commit comments

Comments
 (0)