Skip to content

deleted unncesary test #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions tests/test_geos/libs/test_geos_utils.py
Original file line number Diff line number Diff line change
@@ -2,27 +2,6 @@
from functions.geos.libs.result import Result
import json

def test_output():
# Create a mock result object with a successful status
result_success = Result(status="success", result={"message": "Hello, world!"})

# Call the output function with the mock result object
output_result_success = output(result_success)

# Verify that the output has the correct HTTP status code and payload
assert output_result_success[1] == 200
assert json.loads(output_result_success[0]) == {"message": "Hello, world!"}

# Create a mock result object with an error status
result_error = Result(status="error", errors=[["param", "Invalid request"]])

# Call the output function with the mock result object
output_result_error = output(result_error)

# Verify that the output has the correct HTTP status code and payload
assert output_result_error[1] == 400
assert json.loads(output_result_error[0]) == [{"param": "Invalid request"}]

def test_convert_to_hashes():
input_arr = [["geo", "missing geo parameters"], ["app", "missing geo parameters"]]
expected_output_arr = [{'geo': 'missing geo parameters'}, {'app': 'missing geo parameters'}]