Skip to content

Commit

Permalink
Merge pull request #2183 from opensafely-core/DRMacIver/coverage-example
Browse files Browse the repository at this point in the history
Add example targeting hard to hit coverage
  • Loading branch information
DRMacIver authored Oct 24, 2024
2 parents c570a25 + 79b7128 commit 3156750
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/dummy_data_nextgen/test_specific_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def birthday_range_query(draw):

@example(query=patients.date_of_birth < date(1900, 12, 31), target_size=1000)
@example(query=patients.date_of_birth >= date(1900, 1, 2), target_size=1000)
@example(query=patients.date_of_birth >= date(2000, 12, 1), target_size=1000)
@settings(deadline=None)
@given(query=birthday_range_query(), target_size=st.integers(1, 1000))
@mock.patch("ehrql.dummy_data_nextgen.generator.time")
Expand Down

0 comments on commit 3156750

Please sign in to comment.