Skip to content

Commit b354a97

Browse files
authored
Update test_restful.py
1 parent 2e82612 commit b354a97

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

backend/tests/test_restful.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,6 @@ def test_get_sdm_data(client):
112112
assert response.status_code == 200
113113

114114
assert client.get(f'/bird-info/bad_get').status_code == 404
115-
116-
117-
def test_read_json(client):
118-
test_directory = os.getcwd()
119-
os.chdir('./app')
120-
121-
try:
122-
json_request_response = client.get(f'./json/tavg.json')
123-
assert json_request_response.status_code == 200
124-
finally:
125-
os.chdir(test_directory)
126-
127115

128116
def test_get_bird_ids(client):
129117

@@ -183,4 +171,4 @@ def test_get_heatmap(client):
183171

184172
assert client.get(f'/get_heatmap_data?bird=BAD_ID').status_code == 400
185173
finally:
186-
os.chdir(test_directory)
174+
os.chdir(test_directory)

0 commit comments

Comments
 (0)