PytestConfigWarning: Unknown config option: expected_results_path

See original GitHub issue

Hi,

I am getting a warning while running pytest please find the details below. The Test is executed and running fine but following warning is thrown

env/lib/python3.7/site-packages/_pytest/config/__init__.py:1230:
 PytestConfigWarning: Unknown config option: expected_results_path
  
 self._warn_or_fail_if_strict("Unknown config option: {}\n".format(key))

Python version:- Python 3.7.3

Please find the configuration details:

(env) bash-3.2$ pip freeze
attrs==20.3.0
certifi==2020.12.5
chardet==3.0.4
flaky==3.7.0
idna==2.10
importlib-metadata==3.1.1
iniconfig==1.1.1
jsonschema==3.2.0
nose==1.3.7
nose-testconfig==0.10
packaging==20.7
parameterized==0.7.4
pluggy==0.13.1
psycopg2-binary==2.8.6
py==1.9.0
pyparsing==2.4.7
pyrsistent==0.17.3
pytest==6.1.2
requests==2.25.0
selenium==3.141.0
six==1.15.0
toml==0.10.2
urllib3==1.26.2
zipp==3.4.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
zwl1995-54commented, May 31, 2021

解决了吗

1reaction
nicoddemuscommented, Dec 14, 2020

Hi,

You seem to have an expected_results_path option declared in your configuration file that is not being used by any plugin, hence the warning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve PytestConfigWarning: Unknown config option ...
I found out what was the reason for my problem. I just uninstall. django-pytest 0.2.0. and install. pytest-django.
Read more >
How to solve PytestConfigWarning: Unknown config option ...
Django : How to solve PytestConfigWarning : Unknown config option : DJANGO_ SETTINGS_MODULE error?
Read more >
_pytest.config — pytest documentation
"""Command line options, ini-file and conftest.py processing. ... from _pytest.warning_types import PytestConfigWarning if TYPE_CHECKING: from _pytest.
Read more >
How to solve PytestConfigWarning: Unknown config option ...
Coding example for the question How to solve PytestConfigWarning: Unknown config option: DJANGO_ SETTINGS_MODULE error?-django.
Read more >
1928080 – python-watchgod: FTBFS in Fedora rawhide
_warn_or_fail_if_strict(f"Unknown config option: {key}\n") INTERNALERROR> File ... PytestConfigWarning: Unknown config option: timeout ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found