From 726f89ade77eea3b42b3270663583eeffdb83f2e Mon Sep 17 00:00:00 2001 From: paulhamer-noaa <81647525+paulhamer-noaa@users.noreply.github.com> Date: Fri, 1 Nov 2024 17:20:47 -0600 Subject: [PATCH] Ignore reuqests for valids with MRMS data formats... --- python/idsse_common/test/test_http_utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/idsse_common/test/test_http_utils.py b/python/idsse_common/test/test_http_utils.py index 0a7a146..d16a2ae 100644 --- a/python/idsse_common/test/test_http_utils.py +++ b/python/idsse_common/test/test_http_utils.py @@ -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]}')