============================= test session starts =============================
platform win32 -- Python 3.9.10, pytest-7.0.0, pluggy-1.0.0
rootdir: C:\git-archive\repos\keiqu\inka
collected 14 items
test_highlight.py EEEEEEEEEEEEEE [100%]
=================================== ERRORS ====================================
_ ERROR at setup of test_update_style_in_note_type_when_style_is_empty_string_raises_error _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 21
def test_update_style_in_note_type_when_style_is_empty_string_raises_error(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_update_style_in_note_type_uses_anki_api_to_get_current_style _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 30
def test_update_style_in_note_type_uses_anki_api_to_get_current_style(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_update_style_in_note_type_uses_requests_to_download_style _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 43
def test_update_style_in_note_type_uses_requests_to_download_style(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_update_style_in_note_type_skips_when_same_style_already_exists _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 58
def test_update_style_in_note_type_skips_when_same_style_already_exists(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_update_style_in_note_type_when_incorrect_style_requested_raises_error _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 74
def test_update_style_in_note_type_when_incorrect_style_requested_raises_error(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_update_style_in_note_type_when_no_highlight_style_generates_new_with_one _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 85
def test_update_style_in_note_type_when_no_highlight_style_generates_new_with_one(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_update_style_in_note_type_when_exists_different_highlight_style_replaces_it _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 104
def test_update_style_in_note_type_when_exists_different_highlight_style_replaces_it(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_when_no_script_in_anki_media_downloads_one _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 128
def test_handle_highlighjs_script_when_no_script_in_anki_media_downloads_one(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_when_script_exists_in_anki_media_does_not_download_one _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 144
def test_handle_highlighjs_script_when_script_exists_in_anki_media_does_not_download_one(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_adds_scripts_to_front_and_back_of_note_type _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 157
def test_handle_highlighjs_script_adds_scripts_to_front_and_back_of_note_type(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_when_front_of_note_type_has_scripts_does_not_add_more_to_it _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 186
def test_handle_highlighjs_script_when_front_of_note_type_has_scripts_does_not_add_more_to_it(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_when_back_of_note_type_has_scripts_does_not_add_more_to_it _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 216
def test_handle_highlighjs_script_when_back_of_note_type_has_scripts_does_not_add_more_to_it(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_if_fields_have_not_change_no_update_request_sent _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 239
def test_handle_highlighjs_script_if_fields_have_not_change_no_update_request_sent(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
_ ERROR at setup of test_handle_highlighjs_script_adds_scripts_to_multiple_templates _
file C:\git-archive\repos\keiqu\inka\tests\test_highlight.py, line 259
def test_handle_highlighjs_script_adds_scripts_to_multiple_templates(
file C:\git-archive\repos\keiqu\inka\tests\conftest.py, line 47
@pytest.fixture
def anki_api_mock(mocker) -> MagicMock:
E fixture 'mocker' not found
> available fixtures: anki_api_mock, anki_media, anki_media_mock, another_image, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, config, config_path, default_styles, doctest_namespace, fake_parser, image, image_anki, monkeypatch, path_to_anki_image, path_to_another_anki_image, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
C:\git-archive\repos\keiqu\inka\tests\conftest.py:47
=========================== short test summary info ===========================
ERROR test_highlight.py::test_update_style_in_note_type_when_style_is_empty_string_raises_error
ERROR test_highlight.py::test_update_style_in_note_type_uses_anki_api_to_get_current_style
ERROR test_highlight.py::test_update_style_in_note_type_uses_requests_to_download_style
ERROR test_highlight.py::test_update_style_in_note_type_skips_when_same_style_already_exists
ERROR test_highlight.py::test_update_style_in_note_type_when_incorrect_style_requested_raises_error
ERROR test_highlight.py::test_update_style_in_note_type_when_no_highlight_style_generates_new_with_one
ERROR test_highlight.py::test_update_style_in_note_type_when_exists_different_highlight_style_replaces_it
ERROR test_highlight.py::test_handle_highlighjs_script_when_no_script_in_anki_media_downloads_one
ERROR test_highlight.py::test_handle_highlighjs_script_when_script_exists_in_anki_media_does_not_download_one
ERROR test_highlight.py::test_handle_highlighjs_script_adds_scripts_to_front_and_back_of_note_type
ERROR test_highlight.py::test_handle_highlighjs_script_when_front_of_note_type_has_scripts_does_not_add_more_to_it
ERROR test_highlight.py::test_handle_highlighjs_script_when_back_of_note_type_has_scripts_does_not_add_more_to_it
ERROR test_highlight.py::test_handle_highlighjs_script_if_fields_have_not_change_no_update_request_sent
ERROR test_highlight.py::test_handle_highlighjs_script_adds_scripts_to_multiple_templates
============================= 14 errors in 0.11s ==============================