1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

corrected test for datetime

This commit is contained in:
Bastian Venthur
2021-02-13 12:58:02 +01:00
parent 972bf0c7da
commit af4898f1f6

View File

@@ -34,8 +34,11 @@ def test_convert_markdown_links(input_, expected):
@pytest.mark.parametrize("input_, expected", [
('foo: bar', {'foo': 'bar'}),
('foo: those are several words', {'foo': 'those are several words'}),
('tags: this, is, a, test\n', {'tags': ['this', 'is', 'a', 'test']}),
('date: 2020-01-01 12:10', {'date': datetime(2020, 1, 1, 12, 10)}),
('tags: this, IS, a, test', {'tags': ['this', 'is', 'a', 'test']}),
('date: 2020-01-01 12:10', {'date':
datetime(2020, 1, 1, 12, 10).astimezone()}),
])
def test_convert_metadata(input_, expected):
md = markdown_factory()