FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't parameterize tests using non-Collection iterables by cjwatson · Pull Request #151 · domdfcoding/domdf_python_tools · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions tests/test_dates.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_utc_offset_no_pytz():
# from domdf_python_tools.dates import get_utc_offset


@pytest.mark.parametrize("month_idx, month", enumerate(dates.month_full_names))
@pytest.mark.parametrize("month_idx, month", list(enumerate(dates.month_full_names)))
def test_parse_month(month_idx: int, month: str):
month_idx += 1 # to make 1-indexed

Expand All @@ -219,7 +219,7 @@ def test_parse_month_errors():
dates.parse_month(value) # type: ignore[arg-type]


@pytest.mark.parametrize("month_idx, month", enumerate(dates.month_full_names))
@pytest.mark.parametrize("month_idx, month", list(enumerate(dates.month_full_names)))
def test_get_month_number_from_name(month_idx: int, month: str):
month_idx += 1 # to make 1-indexed

Expand Down
Loading

Back | FazBrowse Home | New Git URL