From 7bdea71cf053b97b4ba293ccf4ada750cbdc5256 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:09:35 -0400 Subject: [PATCH] [6.15.z] simplify time expression assertions (#14386) --- tests/foreman/cli/test_remoteexecution.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index d2ffb7dff6e..3f530054359 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -484,7 +484,6 @@ def test_positive_time_expressions(self, rex_contenthost, target_sat): today = datetime.today() hour = datetime.utcnow().hour last_day_of_month = monthrange(today.year, today.month)[1] - days_to = (2 - today.weekday()) % 7 # cronline uses https://github.com/floraison/fugit fugit_expressions = [ ['@yearly', f'{today.year + 1}/01/01 00:00:00'], @@ -504,11 +503,6 @@ def test_positive_time_expressions(self, rex_contenthost, target_sat): '@hourly', f'{(datetime.utcnow() + timedelta(hours=1)).strftime("%Y/%m/%d %H")}:00:00', ], - [ - '0 0 * * wed-fri', - f'{(today + timedelta(days=(days_to if days_to > 0 else 1))).strftime("%Y/%m/%d")} ' - '00:00:00', - ], # 23 mins after every other hour [ '23 0-23/2 * * *',