Skip to content

Commit 99db3de

Browse files
Bring README doctests up-to-date (#215)
1 parent 553f4b4 commit 99db3de

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ Parse a file containing HTML:
3838
>>> mf2json
3939
{'items': [{'type': ['h-entry'],
4040
'properties': {'name': ['Hello'],
41-
'content': [{'html': 'Just saying hi.',
42-
'value': 'Just saying hi.'}]}}],
41+
'content': [{'value': 'Just saying hi.',
42+
'lang': 'en-us',
43+
'html': 'Just saying hi.'}]},
44+
'lang': 'en-us'}],
4345
'rels': {},
4446
'rel-urls': {},
4547
'debug': {'description': 'mf2py - microformats2 parser for python',

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ pytest = "^7.2.1"
2424
black = "^23.3.0"
2525
isort = "^5.12.0"
2626

27+
[tool.pytest.ini_options]
28+
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"
29+
2730
[tool.isort]
2831
profile = "black"
2932

pytest.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)