Skip to content

Commit

Permalink
[6.15.z] simplify time expression assertions (#14386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Mar 13, 2024
1 parent a3dc979 commit 7bdea71
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/foreman/cli/test_remoteexecution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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 * * *',
Expand Down

0 comments on commit 7bdea71

Please sign in to comment.