Fix implicit-return in season tests (#122784)

pull/122808/head
epenet 2024-07-29 22:09:40 +02:00 committed by GitHub
parent ad50136dbd
commit 4ac85829c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ def idfn(val):
"""Provide IDs for pytest parametrize."""
if isinstance(val, (datetime)):
return val.strftime("%Y%m%d")
return None
@pytest.mark.parametrize(("type", "day", "expected"), NORTHERN_PARAMETERS, ids=idfn)