From 99db3de53137caebd71c214f33711e79bb9a2fe8 Mon Sep 17 00:00:00 2001 From: Angelo Gladding Date: Thu, 30 Nov 2023 03:13:41 -0800 Subject: [PATCH] Bring README doctests up-to-date (#215) --- README.md | 6 ++++-- pyproject.toml | 3 +++ pytest.ini | 2 -- 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 pytest.ini diff --git a/README.md b/README.md index f7fe56f..3ed4689 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,10 @@ Parse a file containing HTML: >>> mf2json {'items': [{'type': ['h-entry'], 'properties': {'name': ['Hello'], - 'content': [{'html': 'Just saying hi.', - 'value': 'Just saying hi.'}]}}], + 'content': [{'value': 'Just saying hi.', + 'lang': 'en-us', + 'html': 'Just saying hi.'}]}, + 'lang': 'en-us'}], 'rels': {}, 'rel-urls': {}, 'debug': {'description': 'mf2py - microformats2 parser for python', diff --git a/pyproject.toml b/pyproject.toml index 4ee0780..9a595fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,9 @@ pytest = "^7.2.1" black = "^23.3.0" isort = "^5.12.0" +[tool.pytest.ini_options] +doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL" + [tool.isort] profile = "black" diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 5a96837..0000000 --- a/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL