Skip to content

Commit

Permalink
Ignore reuqests for valids with MRMS data formats...
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhamer-noaa committed Nov 1, 2024
1 parent d65e86b commit 726f89a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/idsse_common/test/test_http_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ def test_get_valids_all(http_utils: HttpUtils, httpserver: HTTPServer):
url = '/data/'+EXAMPLE_ENDPOINT+'/'
httpserver.expect_request(url).respond_with_data(EXAMPLE_RETURN, content_type="text/plain")
result = http_utils.get_valids(EXAMPLE_ISSUE)
assert len(result) == 2
assert result[0] == (EXAMPLE_VALID, f'{EXAMPLE_URL}{EXAMPLE_PROD_DIR}{EXAMPLE_FILES[1]}')
assert len(result) == 0
#assert result[0] == (EXAMPLE_VALID, f'{EXAMPLE_URL}{EXAMPLE_PROD_DIR}{EXAMPLE_FILES[1]}')


def test_get_valids_with_wildcards(http_utils_with_wild: HttpUtils, httpserver: HTTPServer):
url = '/data/'+EXAMPLE_ENDPOINT+'/'
httpserver.expect_request(url).respond_with_data(EXAMPLE_RETURN, content_type="text/plain")
result = http_utils_with_wild.get_valids(EXAMPLE_ISSUE)
assert len(result) == 2
assert result[0] == (EXAMPLE_VALID.replace(second=0), f'{EXAMPLE_URL}{EXAMPLE_PROD_DIR}{EXAMPLE_FILES[1]}')
assert result[1] == (EXAMPLE_VALID.replace(second=0)+timedelta(minutes=2),
f'{EXAMPLE_URL}{EXAMPLE_PROD_DIR}{EXAMPLE_FILES[2]}')
assert len(result) == 0
#assert result[0] == (EXAMPLE_VALID.replace(second=0), f'{EXAMPLE_URL}{EXAMPLE_PROD_DIR}{EXAMPLE_FILES[1]}')
#assert result[1] == (EXAMPLE_VALID.replace(second=0)+timedelta(minutes=2),
# f'{EXAMPLE_URL}{EXAMPLE_PROD_DIR}{EXAMPLE_FILES[2]}')

0 comments on commit 726f89a

Please sign in to comment.