Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running pytest #167

Closed
kloczek opened this issue May 17, 2021 · 13 comments
Closed

running pytest #167

kloczek opened this issue May 17, 2021 · 13 comments
Labels
question Further information is requested

Comments

@kloczek
Copy link

kloczek commented May 17, 2021

+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, mock-3.6.0, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, requests-mock-1.9.2, aiohttp-0.3.0, checkdocs-2.7.0, hypothesis-6.12.1
collected 863 items
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 322, in _main
INTERNALERROR>     config.hook.pytest_collection(session=session)
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 333, in pytest_collection
INTERNALERROR>     session.perform_collect()
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 636, in perform_collect
INTERNALERROR>     self.config.pluginmanager.check_pending()
INTERNALERROR>   File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 274, in check_pending
INTERNALERROR>     raise PluginValidationError(
INTERNALERROR> pluggy.manager.PluginValidationError: unknown hook 'pytest_benchmark_update_machine_info' in plugin <module 'conftest' from '/home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/benchmarking/conftest.py'>

========================================================================== no tests ran in 0.29s ===========================================================================
@kloczek kloczek added the bug Something isn't working label May 17, 2021
@welcome
Copy link

welcome bot commented May 17, 2021

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@chrisjsewell
Copy link
Member

Heya, it's because you are running with package version that are out of sync with those in the testing extra of https://github.com/executablebooks/markdown-it-py/blob/master/setup.cfg
I recommend using tox to run the tests

@kloczek
Copy link
Author

kloczek commented May 17, 2021

Heya, it's because you are running with package version that are out of sync

Humble quesion: can you point which one are out of sync?🤔

@chrisjsewell
Copy link
Member

You have pytest-6.2.4 and the requirement is pytest>=3.6,<4

@kloczek
Copy link
Author

kloczek commented May 19, 2021

And at the moment it is not possible to have installed both versions because almost everything is using latest version.

@chrisjsewell
Copy link
Member

Certainly happy to receive a PR to update the test dependency versions.
But compatibility of these dependencies with other packages is not IMO an issue, since these are for testing markdown-it-py only. You should not have any other packages in your testing environment apart from those obtained from markdown-it-py[testing], i.e. you should be installing it in a separate virtual environment e.g. using tox

@kloczek
Copy link
Author

kloczek commented May 19, 2021

pytest as you know has a lot extensions and that output is from such env where I have installed almost 500 installed modules.
Simple sometimes some of those extensioans shows false positive errors however sometimes they point on some real issue.
If you don't see any values in what show pytest in such env feel free to close that ticket :)
If you see that some extensions may shows some wrong diagnostics it maybe as well good point to contact maintainer of those extensions to correct something.

In other words don't take that ticked as actual bug report.
I'm packaginfg stuff and I'm good on that however my python skills are still as good as I would like so this is why I'm dropping such reports for the maintainers to have at least some oponion or epertise.
Final version of my packages will be not build in such reach env so don't worry :)
All of them will be build in dedicated env dedicated for only single build where will be installed only what is specifies in rpm spec file BuildRequires.

I think that that comment may explain more about intention of oippening that ticket and from that point of view I would be really appreciated for any comment/expetrtise.

@kloczek
Copy link
Author

kloczek commented Jun 24, 2021

Below is updated pytest log after add to build env few used modules.
Cannot find testpath pytest fixture.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-markdown-it-py-1.1.0~no_loopy_deps-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-markdown-it-py-1.1.0~no_loopy_deps-3.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=1765588921
rootdir: /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, randomly-3.8.0, Faker-8.8.2
collected 863 items

tests/test_cli.py ..                                                                                                                                                 [  0%]
. .                                                                                                                                                                  [  0%]
tests/test_cli.py ..                                                                                                                                                 [  0%]
tests/test_port/test_misc.py .                                                                                                                                       [  0%]
tests/test_api/test_main.py ......E....                                                                                                                              [  1%]
tests/test_linkify.py F                                                                                                                                              [  2%]
tests/test_api/test_token.py ...                                                                                                                                     [  2%]
tests/test_api/test_plugin_creation.py .........                                                                                                                     [  3%]
tests/test_port/test_fixtures.py .........F...............................F.....x.....x...........F.......x..............x........F.......F............x..FF....FF.. [ 18%]
..F.......F...................                                                                                                                                       [ 22%]
tests/test_port/test_references.py EE.                                                                                                                               [ 22%]
tests/test_tree.py E.....                                                                                                                                            [ 23%]
tests/test_cmark_spec/test_spec.py ................................................................................................................................. [ 38%]
..............................................E..................................................................................................................... [ 57%]
.................................................................................................................................................................... [ 76%]
.................................................................................................................................................................... [ 95%]
.............................                                                                                                                                        [ 98%]
tests/test_port/test_no_end_newline.py ...........                                                                                                                   [100%]

================================================================================== ERRORS ==================================================================================
___________________________________________________________________ ERROR at setup of test_table_tokens ____________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_api/test_main.py, line 269
  def test_table_tokens(data_regression):
E       fixture 'data_regression' not found
>       available fixtures: _session_faker, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, current_cases, doctest_namespace, event_loop, faker, faker_seed, fast, freezer, fs, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, loop, loop_debug, mocker, module_mocker, monkeypatch, no_cover, package_mocker, patching, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, smart_caplog, stdouts, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_api/test_main.py:269
___________________________________________________________________ ERROR at setup of test_store_labels ____________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_port/test_references.py, line 40
  def test_store_labels(data_regression):
E       fixture 'data_regression' not found
>       available fixtures: _session_faker, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, current_cases, doctest_namespace, event_loop, faker, faker_seed, fast, freezer, fs, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, loop, loop_debug, mocker, module_mocker, monkeypatch, no_cover, package_mocker, patching, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, smart_caplog, stdouts, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_port/test_references.py:40
_________________________________________________________________ ERROR at setup of test_use_existing_env __________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_port/test_references.py, line 20
  def test_use_existing_env(data_regression):
E       fixture 'data_regression' not found
>       available fixtures: _session_faker, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, current_cases, doctest_namespace, event_loop, faker, faker_seed, fast, freezer, fs, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, loop, loop_debug, mocker, module_mocker, monkeypatch, no_cover, package_mocker, patching, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, smart_caplog, stdouts, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_port/test_references.py:20
______________________________________________________________________ ERROR at setup of test_pretty _______________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_tree.py, line 60
  def test_pretty(file_regression):
E       fixture 'file_regression' not found
>       available fixtures: _session_faker, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, current_cases, doctest_namespace, event_loop, faker, faker_seed, fast, freezer, fs, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, loop, loop_debug, mocker, module_mocker, monkeypatch, no_cover, package_mocker, patching, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, smart_caplog, stdouts, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_tree.py:60
_______________________________________________________________________ ERROR at setup of test_file ________________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_cmark_spec/test_spec.py, line 15
  def test_file(file_regression):
E       fixture 'file_regression' not found
>       available fixtures: _session_faker, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, current_cases, doctest_namespace, event_loop, faker, faker_seed, fast, freezer, fs, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, loop, loop_debug, mocker, module_mocker, monkeypatch, no_cover, package_mocker, patching, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, smart_caplog, stdouts, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
>       use 'pytest --fixtures [testpath]' for help on them.

/home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/tests/test_cmark_spec/test_spec.py:15
================================================================================= FAILURES =================================================================================
____________________________________________________________________________ test_token_levels _____________________________________________________________________________

    def test_token_levels():
        mdit = MarkdownIt(options_update={"linkify": True}).enable("linkify")
>       tokens = mdit.parse("www.python.org")

tests/test_linkify.py:6:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2d1b7b20>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
_____________ test_linkify[52-typorgapher should not break href-http://example.com/(c)\n-<p><a href="http://example.com/(c)">http://example.com/(c)</a></p>\n] _____________

line = 52, title = 'typorgapher should not break href', input = 'http://example.com/(c)\n'
expected = '<p><a href="http://example.com/(c)">http://example.com/(c)</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2d1ed6a0>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
_ test_linkify[41-emails-test@example.com\n\nmailto:test@example.com\n-<p><a href="mailto:test@example.com">test@example.com</a></p>\n<p><a href="mailto:test@example.com">mailto:test@example.com</a></p>\n] _

line = 41, title = 'emails', input = 'test@example.com\n\nmailto:test@example.com\n'
expected = '<p><a href="mailto:test@example.com">test@example.com</a></p>\n<p><a href="mailto:test@example.com">mailto:test@example.com</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2ce46850>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
_ test_linkify[1-linkify-url http://www.youtube.com/watch?v=5Jt5GEr4AYg.\n-<p>url <a href="http://www.youtube.com/watch?v=5Jt5GEr4AYg">http://www.youtube.com/watch?v=5Jt5GEr4AYg</a>.</p>\n] _

line = 1, title = 'linkify', input = 'url http://www.youtube.com/watch?v=5Jt5GEr4AYg.\n'
expected = '<p>url <a href="http://www.youtube.com/watch?v=5Jt5GEr4AYg">http://www.youtube.com/watch?v=5Jt5GEr4AYg</a>.</p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2d20a7c0>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
___ test_linkify[88-before after lines with blank line-before\n\ngithub.com\n\nafter\n-<p>before</p>\n<p><a href="http://github.com">github.com</a></p>\n<p>after</p>\n] ___

line = 88, title = 'before after lines with blank line', input = 'before\n\ngithub.com\n\nafter\n'
expected = '<p>before</p>\n<p><a href="http://github.com">github.com</a></p>\n<p>after</p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cebf3a0>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
__________________ test_linkify[17-don't touch text in autolinks-<https://example.com>\n-<p><a href="https://example.com">https://example.com</a></p>\n] ___________________

line = 17, title = "don't touch text in autolinks", input = '<https://example.com>\n', expected = '<p><a href="https://example.com">https://example.com</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cc7a820>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
_ test_linkify[25-don't touch text in html <a> tags-<a href="https://example.com">https://example.com</a>\n-<p><a href="https://example.com">https://example.com</a></p>\n] _

line = 25, title = "don't touch text in html <a> tags", input = '<a href="https://example.com">https://example.com</a>\n'
expected = '<p><a href="https://example.com">https://example.com</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2ce87ee0>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
______________________________ test_linkify[59-before line-before\ngithub.com\n-<p>before\n<a href="http://github.com">github.com</a></p>\n] _______________________________

line = 59, title = 'before line', input = 'before\ngithub.com\n', expected = '<p>before\n<a href="http://github.com">github.com</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cd2fe20>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
____________________ test_linkify[77-before after lines-before\ngithub.com\nafter\n-<p>before\n<a href="http://github.com">github.com</a>\nafter</p>\n] ____________________

line = 77, title = 'before after lines', input = 'before\ngithub.com\nafter\n', expected = '<p>before\n<a href="http://github.com">github.com</a>\nafter</p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cca18b0>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
__________ test_linkify[9-don't touch text in links-[https://example.com](https://example.com)\n-<p><a href="https://example.com">https://example.com</a></p>\n] ___________

line = 9, title = "don't touch text in links", input = '[https://example.com](https://example.com)\n'
expected = '<p><a href="https://example.com">https://example.com</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cd48c70>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
______________________ test_linkify[33-match links without protocol-www.example.org\n-<p><a href="http://www.example.org">www.example.org</a></p>\n] _______________________

line = 33, title = 'match links without protocol', input = 'www.example.org\n', expected = '<p><a href="http://www.example.org">www.example.org</a></p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cd5d220>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
________________________________ test_linkify[68-after line-github.com\nafter\n-<p><a href="http://github.com">github.com</a>\nafter</p>\n] ________________________________

line = 68, title = 'after line', input = 'github.com\nafter\n', expected = '<p><a href="http://github.com">github.com</a>\nafter</p>\n'

    @pytest.mark.parametrize(
        "line,title,input,expected",
        read_fixture_file(FIXTURE_PATH.joinpath("linkify.md")),
    )
    def test_linkify(line, title, input, expected):
        md = MarkdownIt().enable("linkify")
        md.options["linkify"] = True
>       text = md.render(input)

tests/test_port/test_fixtures.py:18:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
markdown_it/main.py:275: in render
    return self.renderer.render(self.parse(src, env), self.options, env)
markdown_it/main.py:260: in parse
    self.core.process(state)
markdown_it/parser_core.py:33: in process
    rule(state)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <markdown_it.rules_core.state_core.StateCore object at 0x7f5a2cca6df0>

    def linkify(state: StateCore) -> None:
        blockTokens = state.tokens

        if not state.md.options.linkify:
            return

        if not state.md.linkify:
>           raise ModuleNotFoundError("Linkify enabled but not installed.")
E           ModuleNotFoundError: Linkify enabled but not installed.

markdown_it/rules_core/linkify.py:31: ModuleNotFoundError
============================================================================= warnings summary =============================================================================
tests/test_api/test_token.py::test_nest_tokens
tests/test_api/test_token.py::test_nest_tokens
tests/test_api/test_token.py::test_nest_tokens
  /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/markdown_it/token.py:194: DeprecationWarning: `markdown_it.token.nest_tokens` and `markdown_it.token.NestedTokens` are deprecated. Please migrate to `markdown_it.tree.SyntaxTreeNode`
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
XFAIL tests/test_port/test_fixtures.py::test_fatal[17-Should not throw exception on broken utf-16 surrogates sequence in URL [mailformed URI]-[foo](&#xD800;)\n-<p><a href="&amp;#xD800;">foo</a></p>\n]
  reason: url normalisation
XFAIL tests/test_port/test_fixtures.py::test_normalize_url[17-Keep %25 as is because decoding it may break urls, #720-<https://www.google.com/search?q=hello%2E%252Ehello>\n-<p><a href="https://www.google.com/search?q=hello%2E%252Ehello">https://www.google.com/search?q=hello.%252Ehello</a></p>\n]
  reason: url normalisation
XFAIL tests/test_port/test_fixtures.py::test_commonmark_extras[88-Checking combination of replaceEntities and unescapeMd:-~~~ &amp;&bad;\\&amp;\\\\&amp;\njust a funny little fence\n~~~\n-<pre><code class="&amp;&amp;bad;&amp;amp;\\&amp;">just a funny little fence\n</code></pre>\n]
  reason: escaping entities in link titles / fence.info
XFAIL tests/test_port/test_fixtures.py::test_fatal[1-Should not throw exception on invalid chars in URL (`*` not allowed in path) [mailformed URI]-[foo](<&#x25;test>)\n-<p><a href="%25test">foo</a></p>\n]
  reason: url normalisation
XFAIL tests/test_port/test_fixtures.py::test_commonmark_extras[74-Escaping entities in links:-[](<&quot;> "&amp;&ouml;")\n\n[](<\\&quot;> "\\&amp;\\&ouml;")\n\n[](<\\\\&quot;> "\\\\&quot;\\\\&ouml;")\n-<p><a href="%22" title="&amp;\xf6"></a></p>\n<p><a href="&amp;quot;" title="&amp;amp;&amp;ouml;"></a></p>\n<p><a href="%5C%22" title="\\&quot;\\\xf6"></a></p>\n]
  reason: escaping entities in link titles / fence.info
ERROR tests/test_api/test_main.py::test_table_tokens
ERROR tests/test_port/test_references.py::test_store_labels
ERROR tests/test_port/test_references.py::test_use_existing_env
ERROR tests/test_tree.py::test_pretty
ERROR tests/test_cmark_spec/test_spec.py::test_file
FAILED tests/test_linkify.py::test_token_levels - ModuleNotFoundError: Linkify enabled but not installed.
FAILED tests/test_port/test_fixtures.py::test_linkify[52-typorgapher should not break href-http://example.com/(c)\n-<p><a href="http://example.com/(c)">http://example.com/(c)</a></p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[41-emails-test@example.com\n\nmailto:test@example.com\n-<p><a href="mailto:test@example.com">test@example.com</a></p>\n<p><a href="mailto:test@example.com">mailto:test@example.com</a></p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[1-linkify-url http://www.youtube.com/watch?v=5Jt5GEr4AYg.\n-<p>url <a href="http://www.youtube.com/watch?v=5Jt5GEr4AYg">http://www.youtube.com/watch?v=5Jt5GEr4AYg</a>.</p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[88-before after lines with blank line-before\n\ngithub.com\n\nafter\n-<p>before</p>\n<p><a href="http://github.com">github.com</a></p>\n<p>after</p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[17-don't touch text in autolinks-<https://example.com>\n-<p><a href="https://example.com">https://example.com</a></p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[25-don't touch text in html <a> tags-<a href="https://example.com">https://example.com</a>\n-<p><a href="https://example.com">https://example.com</a></p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[59-before line-before\ngithub.com\n-<p>before\n<a href="http://github.com">github.com</a></p>\n] - ModuleNotFoundEr...
FAILED tests/test_port/test_fixtures.py::test_linkify[77-before after lines-before\ngithub.com\nafter\n-<p>before\n<a href="http://github.com">github.com</a>\nafter</p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[9-don't touch text in links-[https://example.com](https://example.com)\n-<p><a href="https://example.com">https://example.com</a></p>\n]
FAILED tests/test_port/test_fixtures.py::test_linkify[33-match links without protocol-www.example.org\n-<p><a href="http://www.example.org">www.example.org</a></p>\n] - ...
FAILED tests/test_port/test_fixtures.py::test_linkify[68-after line-github.com\nafter\n-<p><a href="http://github.com">github.com</a>\nafter</p>\n] - ModuleNotFoundError...
===================================================== 12 failed, 839 passed, 5 xfailed, 3 warnings, 5 errors in 10.53s =====================================================

@kloczek
Copy link
Author

kloczek commented Jun 24, 2021

warning after deselecting faling units:

============================================================================= warnings summary =============================================================================
tests/test_api/test_token.py::test_nest_tokens
tests/test_api/test_token.py::test_nest_tokens
tests/test_api/test_token.py::test_nest_tokens
  /home/tkloczko/rpmbuild/BUILD/markdown-it-py-1.1.0/markdown_it/token.py:194: DeprecationWarning: `markdown_it.token.nest_tokens` and `markdown_it.token.NestedTokens` are deprecated. Please migrate to `markdown_it.tree.SyntaxTreeNode`
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
XFAIL tests/test_port/test_fixtures.py::test_fatal[17-Should not throw exception on broken utf-16 surrogates sequence in URL [mailformed URI]-[foo](&#xD800;)\n-<p><a href="&amp;#xD800;">foo</a></p>\n]
  reason: url normalisation
XFAIL tests/test_port/test_fixtures.py::test_fatal[1-Should not throw exception on invalid chars in URL (`*` not allowed in path) [mailformed URI]-[foo](<&#x25;test>)\n-<p><a href="%25test">foo</a></p>\n]
  reason: url normalisation
XFAIL tests/test_port/test_fixtures.py::test_commonmark_extras[88-Checking combination of replaceEntities and unescapeMd:-~~~ &amp;&bad;\\&amp;\\\\&amp;\njust a funny little fence\n~~~\n-<pre><code class="&amp;&amp;bad;&amp;amp;\\&amp;">just a funny little fence\n</code></pre>\n]
  reason: escaping entities in link titles / fence.info
XFAIL tests/test_port/test_fixtures.py::test_normalize_url[17-Keep %25 as is because decoding it may break urls, #720-<https://www.google.com/search?q=hello%2E%252Ehello>\n-<p><a href="https://www.google.com/search?q=hello%2E%252Ehello">https://www.google.com/search?q=hello.%252Ehello</a></p>\n]
  reason: url normalisation
XFAIL tests/test_port/test_fixtures.py::test_commonmark_extras[74-Escaping entities in links:-[](<&quot;> "&amp;&ouml;")\n\n[](<\\&quot;> "\\&amp;\\&ouml;")\n\n[](<\\\\&quot;> "\\\\&quot;\\\\&ouml;")\n-<p><a href="%22" title="&amp;\xf6"></a></p>\n<p><a href="&amp;quot;" title="&amp;amp;&amp;ouml;"></a></p>\n<p><a href="%5C%22" title="\\&quot;\\\xf6"></a></p>\n]
  reason: escaping entities in link titles / fence.info
======================================================== 839 passed, 17 deselected, 5 xfailed, 3 warnings in 10.11s ========================================================

@chrisjsewell
Copy link
Member

chrisjsewell commented Jun 24, 2021

again this is because you did not install the test extras: markdown-it-py[linkify,testing], that includes the packages that it tells you are not installed: pytest-regreesions and linkify

@chrisjsewell
Copy link
Member

warning after deselecting faling units:

yes these are pytest xfails => expected failures

@chrisjsewell chrisjsewell added question Further information is requested and removed bug Something isn't working labels Jun 24, 2021
@chrisjsewell chrisjsewell changed the title 1.1.0: pytest based test suite is failing running pytest Jun 24, 2021
@kloczek
Copy link
Author

kloczek commented Jun 24, 2021

again this is because you did not install the test extras: markdown-it-py[linkify,testing], that includes the packages that it tells you are not installed: pytest-regreesions and linkify

ModuleNotFoundError: Linkify enabled but not installed. That message is a bit misleading.
You mean linkify?

Could you please point on exact modules which are missing in my env?

@chrisjsewell
Copy link
Member

If you run with tox, you'll get exactly the correct environment to run in, or you can look at all the CI runs what is installed: https://github.com/executablebooks/markdown-it-py/runs/2866753699?check_suite_focus=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants