Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Sep 6, 2024
1 parent 27a3dc9 commit 14cb8cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus_library/statistics/counts/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from cumulus_library.builders.counts import CountsBuilder # pramga: no cover
from cumulus_library.builders.counts import CountsBuilder
15 changes: 15 additions & 0 deletions tests/test_counts_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ def test_get_table_name(name, duration, expected):
assert output == expected


@pytest.mark.parametrize(
"name,duration,expected",
[
("table", None, "test__table"),
("table", "month", "test__table_month"),
],
)
def test_deprecation_patch(name, duration, expected):
from cumulus_library.statistics.counts import CountsBuilder

builder = CountsBuilder(study_prefix=TEST_PREFIX)
output = builder.get_table_name(name, duration)
assert output == expected


@pytest.mark.parametrize(
"clause,min_subject,expected,raises",
[
Expand Down

0 comments on commit 14cb8cb

Please sign in to comment.