Skip to content

Commit 79e9ad4

Browse files
committed
Disable another unit test for Gene Ontology code requirement.
1 parent 99867fa commit 79e9ad4

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

tests/routers/test_experiments.py

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -338,24 +338,25 @@ def test_create_experiment_that_keyword_gene_ontology_is_other_without_code(clie
338338
assert response_data["keywords"][0]["keyword"]["label"] == "Other"
339339

340340

341-
def test_cannot_create_experiment_that_keyword_has_an_invalid_code(client, setup_router_db):
342-
invalid_keyword = {
343-
"keywords": [
344-
{
345-
"keyword": {
346-
"key": "Phenotypic Assay Mechanism",
347-
"label": "Label",
348-
"code": "invalid",
349-
"description": "Description",
350-
},
351-
},
352-
]
353-
}
354-
experiment = {**TEST_MINIMAL_EXPERIMENT, **invalid_keyword}
355-
response = client.post("/api/v1/experiments/", json=experiment)
356-
assert response.status_code == 422
357-
response_data = response.json()
358-
assert "Invalid Gene Ontology accession." in response_data["detail"][0]["msg"]
341+
# TODO(#511) Re-enable the Gene Ontology code requirement.
342+
# def test_cannot_create_experiment_that_keyword_has_an_invalid_code(client, setup_router_db):
343+
# invalid_keyword = {
344+
# "keywords": [
345+
# {
346+
# "keyword": {
347+
# "key": "Phenotypic Assay Mechanism",
348+
# "label": "Label",
349+
# "code": "invalid",
350+
# "description": "Description",
351+
# },
352+
# },
353+
# ]
354+
# }
355+
# experiment = {**TEST_MINIMAL_EXPERIMENT, **invalid_keyword}
356+
# response = client.post("/api/v1/experiments/", json=experiment)
357+
# assert response.status_code == 422
358+
# response_data = response.json()
359+
# assert "Invalid Gene Ontology accession." in response_data["detail"][0]["msg"]
359360

360361

361362
def test_cannot_create_experiment_that_keyword_label_is_other_without_description(client, setup_router_db):

0 commit comments

Comments
 (0)