Skip to content

Commit

Permalink
Test createdBefore run filter (#10270)
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Nov 2, 2022
1 parent 4df6e55 commit c8dee2d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ def test_add_run_tags(self, storage):
}

def test_fetch_by_filter(self, storage):

now = pendulum.now()

assert storage
one = make_new_run_id()
two = make_new_run_id()
Expand Down Expand Up @@ -473,6 +476,12 @@ def test_fetch_by_filter(self, storage):
assert len(some_runs) == 4
assert count == 4

old_runs = storage.get_runs(RunsFilter(created_before=now.add(days=-1)))
assert len(old_runs) == 0

new_runs = storage.get_runs(RunsFilter(created_before=now.add(days=1)))
assert len(new_runs) == 4

def test_fetch_count_by_tag(self, storage):
assert storage
one = make_new_run_id()
Expand Down

0 comments on commit c8dee2d

Please sign in to comment.