python -m pytest tests/test_health_check.py
============================================================== test session starts ===============================================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/bgarcial/projects/nd064_course_1/exercises/python-helloworld
plugins: flask-1.2.0
collected 2 items
tests/test_health_check.py E. [100%]
===================================================================== ERRORS =====================================================================
______________________________________________________ ERROR at setup of test_health_check _______________________________________________________
file /home/bgarcial/projects/nd064_course_1/exercises/python-helloworld/tests/test_health_check.py, line 9
def test_health_check(client):
file /home/bgarcial/udacity_cnf/lib/python3.10/site-packages/pytest_flask/plugin.py, line 116
@pytest.fixture(autouse=True)
def _configure_application(request, monkeypatch):
E fixture 'app' not found
> available fixtures: _configure_application, _monkeypatch_response_class, _push_request_context, accept_any, accept_json, accept_jsonp, accept_mimetype, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, client, client_class, config, doctest_namespace, live_server, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, request_ctx, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/bgarcial/udacity_cnf/lib/python3.10/site-packages/pytest_flask/plugin.py:116
============================================================ short test summary info =============================================================
ERROR tests/test_health_check.py::test_health_check
Created
November 17, 2022 22:31
-
-
Save bgarcial/d1a4ea20cd78a82f07711d88b24761f9 to your computer and use it in GitHub Desktop.
error on pytest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment