From 3306a9b2dd7d28d23b7d4a7ab5b24825718ff5b1 Mon Sep 17 00:00:00 2001 From: devsjc <47188100+devsjc@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:58:03 +0000 Subject: [PATCH] fix(ecmwf_realtime): Test --- .../model_repositories/test_ecmwf_realtime.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/nwp_consumer/internal/repositories/model_repositories/test_ecmwf_realtime.py b/src/nwp_consumer/internal/repositories/model_repositories/test_ecmwf_realtime.py index 65d18b74..50de560a 100644 --- a/src/nwp_consumer/internal/repositories/model_repositories/test_ecmwf_realtime.py +++ b/src/nwp_consumer/internal/repositories/model_repositories/test_ecmwf_realtime.py @@ -74,12 +74,17 @@ class TestCase: tests: list[TestCase] = [ TestCase( name="valid_filename", - filename="A2D10251200102516001", + filename=f"A2D{test_it:%m%d%H%M}102516001", expected=True, ), TestCase( - name="invalid_filename", - filename="GGC10251200102516002", + name="invalid_init_time", + filename="A2D09250600102516002", + expected=False, + ), + TestCase( + name="invalid_prefix", + filename=f"GGC{test_it:%m%d%H%M}102516002", expected=False, ), TestCase(