Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
AriWebb committed Nov 15, 2023
1 parent 6a822e0 commit 4d30e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,9 @@ def test_search_time(ctx):
time.sleep(1)
time3 = datetime.now().isoformat()

# Check date format works correctly, GH issue #4360
check_equals('1', _run_command([cl, 'search', '.before=2023-1-11', '.count']))

# No results
check_equals('', _run_command([cl, 'search', 'name=' + name, '.before=' + time1, '-u']))
check_equals('', _run_command([cl, 'search', 'name=' + name, '.after=' + time3, '-u']))
Expand Down

0 comments on commit 4d30e45

Please sign in to comment.