@@ -122,7 +122,7 @@ def test_hgvs_gene_transcript_valid(client, setup_router_db):
122122 json = {"results" : [{"hgnc" : f"{ VALID_GENE } " , "tx_ac" : VALID_TRANSCRIPT }]},
123123 )
124124
125- response = client .get (f"/api/v1/hgvs/transcripts/ gene/{ VALID_GENE } " )
125+ response = client .get (f"/api/v1/hgvs/gene/{ VALID_GENE } " )
126126 assert response .status_code == 200
127127 assert VALID_TRANSCRIPT in response .json ()
128128
@@ -131,15 +131,15 @@ def test_hgvs_gene_transcript_invalid(client, setup_router_db):
131131 with requests_mock .mock () as m :
132132 m .get (f"https://cdot.cc/transcripts/gene/{ INVALID_GENE } " , status_code = 404 )
133133
134- response = client .get (f"/api/v1/hgvs/transcripts/ gene/{ INVALID_GENE } " )
134+ response = client .get (f"/api/v1/hgvs/gene/{ INVALID_GENE } " )
135135
136136 assert m .called
137137 assert response .status_code == 404
138138
139139
140140def test_hgvs_transcript_valid (client , setup_router_db ):
141141 with patch .object (cdot .hgvs .dataproviders .RESTDataProvider , "_get_transcript" , return_value = TEST_CDOT_TRANSCRIPT ):
142- response = client .get (f"/api/v1/hgvs/transcripts/ { VALID_TRANSCRIPT } " )
142+ response = client .get (f"/api/v1/hgvs/{ VALID_TRANSCRIPT } " )
143143
144144 assert response .status_code == 200
145145 assert response .json ()["hgnc" ] == VALID_GENE
@@ -149,7 +149,7 @@ def test_hgvs_transcript_invalid(client, setup_router_db):
149149 with requests_mock .mock () as m :
150150 m .get (f"https://cdot.cc/transcript/{ INVALID_TRANSCRIPT } " , status_code = 404 )
151151
152- response = client .get (f"/api/v1/hgvs/transcripts/ { INVALID_TRANSCRIPT } " )
152+ response = client .get (f"/api/v1/hgvs/{ INVALID_TRANSCRIPT } " )
153153
154154 assert m .called
155155 assert response .status_code == 404
@@ -163,7 +163,7 @@ def test_hgvs_transcript_protein_valid(client, setup_router_db):
163163 json = {"biotype" : ["protein_coding" ], "gene_name" : "A2M" , "gene_vesion" : "2" , "protein" : "NP_000005.2" },
164164 )
165165
166- response = client .get (f"/api/v1/hgvs/transcripts/ protein/{ HAS_PROTEIN_ACCESSION } " )
166+ response = client .get (f"/api/v1/hgvs/protein/{ HAS_PROTEIN_ACCESSION } " )
167167
168168 assert m .called
169169
@@ -175,7 +175,7 @@ def test_hgvs_transcript_protein_no_protein(client, setup_router_db):
175175 with requests_mock .mock () as m :
176176 m .get (f"https://cdot.cc/transcript/{ SMALL_ACCESSION } " , status_code = 404 )
177177
178- response = client .get (f"/api/v1/hgvs/transcripts/ protein/{ SMALL_ACCESSION } " )
178+ response = client .get (f"/api/v1/hgvs/protein/{ SMALL_ACCESSION } " )
179179
180180 assert m .called
181181 assert response .status_code == 404
@@ -185,7 +185,7 @@ def test_hgvs_transcript_protein_invalid(client, setup_router_db):
185185 with requests_mock .mock () as m :
186186 m .get (f"https://cdot.cc/transcript/{ INVALID_ACCESSION } " , status_code = 404 )
187187
188- response = client .get (f"/api/v1/hgvs/transcripts/ protein/{ INVALID_ACCESSION } " )
188+ response = client .get (f"/api/v1/hgvs/protein/{ INVALID_ACCESSION } " )
189189
190190 assert m .called
191191 assert response .status_code == 404
0 commit comments