Skip to content

Commit

Permalink
fix(tests): invalid path to strptime() (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut authored May 21, 2021
1 parent 49557da commit 591cdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/snippets/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def resource_prefix() -> str:
def resource_name_to_date(resource_name: str):
start_date = len(RESOURCE_PREFIX) + 1
date_string = resource_name[start_date : start_date + RESOURCE_DATE_LENGTH]
return datetime.strptime(date_string, RESOURCE_DATE_FORMAT)
return datetime.datetime.strptime(date_string, RESOURCE_DATE_FORMAT)


@pytest.fixture(scope="session", autouse=True)
Expand Down

0 comments on commit 591cdd8

Please sign in to comment.