Skip to content
Permalink
Browse files
fix(tests): invalid path to strptime() (#672)
  • Loading branch information
plamut committed May 21, 2021
1 parent 49557da commit 591cdd851bb1321b048a05a378a0ef48d3ade462
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/snippets/conftest.py
@@ -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)

0 comments on commit 591cdd8

Please sign in to comment.