Skip to content

Commit faf607b

Browse files
authored
Merge pull request #29 from HTTPArchive/development
deleted unncesary test
2 parents 57f6d19 + 3bcaa3b commit faf607b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/test_geos/libs/test_geos_utils.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,6 @@
22
from functions.geos.libs.result import Result
33
import json
44

5-
def test_output():
6-
# Create a mock result object with a successful status
7-
result_success = Result(status="success", result={"message": "Hello, world!"})
8-
9-
# Call the output function with the mock result object
10-
output_result_success = output(result_success)
11-
12-
# Verify that the output has the correct HTTP status code and payload
13-
assert output_result_success[1] == 200
14-
assert json.loads(output_result_success[0]) == {"message": "Hello, world!"}
15-
16-
# Create a mock result object with an error status
17-
result_error = Result(status="error", errors=[["param", "Invalid request"]])
18-
19-
# Call the output function with the mock result object
20-
output_result_error = output(result_error)
21-
22-
# Verify that the output has the correct HTTP status code and payload
23-
assert output_result_error[1] == 400
24-
assert json.loads(output_result_error[0]) == [{"param": "Invalid request"}]
25-
265
def test_convert_to_hashes():
276
input_arr = [["geo", "missing geo parameters"], ["app", "missing geo parameters"]]
287
expected_output_arr = [{'geo': 'missing geo parameters'}, {'app': 'missing geo parameters'}]

0 commit comments

Comments
 (0)