From fce97753abce82f9ecef36cfa0fa1f7f1036e678 Mon Sep 17 00:00:00 2001 From: Ian <6273252+ilaflott@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:27:11 -0500 Subject: [PATCH] Delete fre/app/generate_time_averages/tests/.unused_tests directory --- .../.unused_tests/test_multiply_duration.py | 17 ----------------- .../.unused_tests/test_subtract_durations.py | 17 ----------------- 2 files changed, 34 deletions(-) delete mode 100644 fre/app/generate_time_averages/tests/.unused_tests/test_multiply_duration.py delete mode 100644 fre/app/generate_time_averages/tests/.unused_tests/test_subtract_durations.py diff --git a/fre/app/generate_time_averages/tests/.unused_tests/test_multiply_duration.py b/fre/app/generate_time_averages/tests/.unused_tests/test_multiply_duration.py deleted file mode 100644 index 704907b5..00000000 --- a/fre/app/generate_time_averages/tests/.unused_tests/test_multiply_duration.py +++ /dev/null @@ -1,17 +0,0 @@ -from fre_python_tools.utilities.multiply_duration import multiply_duration -import metomi.isodatetime.parsers as parse - -def test_month(): - '''1 month x 2 = 2 months''' - two_months = parse.DurationParser().parse('P2M') - assert multiply_duration('P1M', 2) == two_months - -def test_minutes(): - '''12 minutes x 5 = 1 hour''' - hour = parse.DurationParser().parse('PT1H') - assert multiply_duration('PT12M', 5) == hour - -def test_fail(): - '''10 minutes x 5 != 1 hour''' - hour = parse.DurationParser().parse('PT1H') - assert multiply_duration('PT10M', 5) != hour diff --git a/fre/app/generate_time_averages/tests/.unused_tests/test_subtract_durations.py b/fre/app/generate_time_averages/tests/.unused_tests/test_subtract_durations.py deleted file mode 100644 index f495745d..00000000 --- a/fre/app/generate_time_averages/tests/.unused_tests/test_subtract_durations.py +++ /dev/null @@ -1,17 +0,0 @@ -from fre_python_tools.utilities.subtract_durations import subtract_durations -import metomi.isodatetime.parsers as parse - -def test_months(): - '''13 months - 3 months = 10 months''' - ten_months = parse.DurationParser().parse('P10M') - assert subtract_durations('P13M', 'P3M') == ten_months - -def test_hour(): - '''2 hours minus 30 minutes = 90 minutes''' - ninety_mins = parse.DurationParser().parse('PT90M') - assert subtract_durations('PT2H', 'PT30M') == ninety_mins - -def test_fail(): - '''2 hours minus 60 minutes != 90 minutes''' - ninety_mins = parse.DurationParser().parse('PT90M') - assert subtract_durations('PT2H', 'PT60M') != ninety_mins