-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1052 from akrherz/250102-2
Omnibus
- Loading branch information
Showing
6 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Test autoplots that call external services.""" | ||
|
||
from iemweb.autoplot.autoplot import application | ||
from pytest_httpx import HTTPXMock | ||
from werkzeug.test import Client | ||
|
||
|
||
def test_ap17(httpx_mock: HTTPXMock): | ||
"""Test a failure found in prod.""" | ||
httpx_mock.add_response(status_code=404) | ||
c = Client(application) | ||
res = c.get("?p=17") | ||
assert res.status_code == 400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Test geojson/sbw.py service.""" | ||
|
||
from iemweb.geojson.sbw import application | ||
from werkzeug.test import Client | ||
|
||
|
||
def test_250102_ts_not_working(): | ||
"""Test a failure found in prod.""" | ||
c = Client(application) | ||
res = c.get("?ts=2024-05-21T20:00:00Z") | ||
assert res.json["features"] |