Skip to content
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

BUG Fix : Failing unit test cases #246

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ def upload_dataset(self, dump_config_to_s3=False):
try:
self.dataset.create_in_hdx(
allow_no_resources=True,
# hxl_update=False,
hxl_update=False,
)
dataset_info["hdx_upload"] = "SUCCESS"
except Exception as ex:
Expand Down
19 changes: 12 additions & 7 deletions tests/test_API.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Standard library imports
import os
import time

# Third party imports
from fastapi.testclient import TestClient

# Reader imports
from API.main import app

client = TestClient(app)
Expand Down Expand Up @@ -722,18 +725,20 @@ def test_snapshot_plain():
response = client.post(
"/v1/snapshot/plain/",
json={
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[83.96919250488281, 28.194446860487773],
[83.99751663208006, 28.194446860487773],
[83.99751663208006, 28.214869548073377],
[83.96919250488281, 28.214869548073377],
[83.96919250488281, 28.194446860487773],
[83.98223911755514, 28.21348731781771],
[83.98223911755514, 28.208639873158987],
[83.9881146731152, 28.208639873158987],
[83.9881146731152, 28.21348731781771],
[83.98223911755514, 28.21348731781771],
]
],
}
"type": "Polygon",
},
},
)
assert response.status_code == 200
Expand Down
Loading