Skip to content

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchegm committed Dec 9, 2024
1 parent 7e4d075 commit d733940
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/affiliations/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setUpTestData(cls):
"full_name": "Test Success Result Affil",
"short_name": "Successful",
"status": "Inactive",
"type": "Gene Curation Expert Panel",
"type": "GCEP",
"clinical_domain_working_group": "Neurodevelopmental Disorders",
"members": "Bulbasaur, Charmander, Squirtle",
"is_deleted": False,
Expand Down Expand Up @@ -184,6 +184,8 @@ def test_should_be_able_to_view_single_affiliation_detail(self):
def test_detail_affiliation_json_call(self):
"""Make sure the API response of a single affiliation is returned
in the original JSON format ."""
_ = User.objects.create_user(username="test_user", password="secret")
self.client.login(username="test_user", password="secret")
response = self.client.get("/api/affiliation_detail/?affil_id=10000")
self.assertEqual(
response.json(),
Expand All @@ -192,14 +194,12 @@ def test_detail_affiliation_json_call(self):
"affiliation_id": "10000",
"affiliation_fullname": "Test Success Result Affil",
"subgroups": {
"gene curation expert panel": {
"gcep": {
"id": "40000",
"fullname": "Test Success Result Affil",
}
},
"approver": [
"Mew",
],
"approver": ["Mew"],
}
],
)
Expand Down

0 comments on commit d733940

Please sign in to comment.