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:
@@ -34,8 +34,11 @@ def test_convert_markdown_links(input_, expected):
|
|||||||
|
|
||||||
@pytest.mark.parametrize("input_, expected", [
|
@pytest.mark.parametrize("input_, expected", [
|
||||||
('foo: bar', {'foo': 'bar'}),
|
('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']}),
|
('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):
|
def test_convert_metadata(input_, expected):
|
||||||
md = markdown_factory()
|
md = markdown_factory()
|
||||||
|
|||||||
Reference in New Issue
Block a user