Open jbclements opened 8 years ago
It would be reasonable to consider me a Python n00b, so feel free to close this if you like:
1) It looks to me like there's an undeclared dependency on pytest. Specifically, after installing with
python setup.py install --user
(python version is 2.7)
I try to run the test file with
python test_rfc6266.py
and discover that I need pytest.
Second, after installing pytest, I see this output:
python -m pytest =========================================================================================== test session starts ============================================================================================ platform darwin -- Python 2.7.12, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 rootdir: /private/tmp/rfc6266, inifile: collected 7 items test_rfc6266.py .EE.... ================================================================================================== ERRORS ================================================================================================== _____________________________________________________________________________________ ERROR at setup of test_httplib2 ______________________________________________________________________________________ file /private/tmp/rfc6266/test_rfc6266.py, line 26 @pytest.mark.skipif("(3,0) <= sys.version_info < (3,3)") def test_httplib2(httpserver): E fixture 'httpserver' not found > available fixtures: cache, capfd, capsys, doctest_namespace, monkeypatch, pytestconfig, record_xml_property, recwarn, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /private/tmp/rfc6266/test_rfc6266.py:26 _____________________________________________________________________________________ ERROR at setup of test_requests ______________________________________________________________________________________ file /private/tmp/rfc6266/test_rfc6266.py, line 36 @pytest.mark.skipif("(3,0) <= sys.version_info < (3,3)") def test_requests(httpserver): E fixture 'httpserver' not found > available fixtures: cache, capfd, capsys, doctest_namespace, monkeypatch, pytestconfig, record_xml_property, recwarn, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /private/tmp/rfc6266/test_rfc6266.py:36 ==================================================================================== 5 passed, 2 error in 0.22 seconds =====================================================================================
Finally, I guess I was surprised by the test coverage--there's not much coverage of parsing of interesting Content-Disposition lines?
Many thanks, sorry for being so needy!
If anyone stumbles on this thread after seeing the same error, httpserver requires the pytest-localserver package.
httpserver
It would be reasonable to consider me a Python n00b, so feel free to close this if you like:
1) It looks to me like there's an undeclared dependency on pytest. Specifically, after installing with
python setup.py install --user
(python version is 2.7)
I try to run the test file with
python test_rfc6266.py
and discover that I need pytest.
Second, after installing pytest, I see this output:
Finally, I guess I was surprised by the test coverage--there's not much coverage of parsing of interesting Content-Disposition lines?
Many thanks, sorry for being so needy!