You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
i am having issues in getting this pytest recorder to work correctly, not sure if i need to install anything in particular
here's a simple test,called test_httpplugin.py
Hello
i am having issues in getting this pytest recorder to work correctly, not sure if i need to install anything in particular
here's a simple test,called test_httpplugin.py
import pytest
import requests
@pytest.mark.record_http
def test_some_test(record):
requests.get('http://www.google.com')
running it like this result in an error as the record_http extension is not recognized
(openbb-mmistroni) PS C:\Users\Marco And Sofia\OpenBB\OpenBB_Experiments\openbb-mmprvds\tests> pytest -s test_httpplugin.py --record
C:\Users\Marco\envs\openbb-mmistroni\Lib\site-packages_pytest\config_init_.py:331: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: helpconfig, Hook: pytest_cmdline_parse
UsageError: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --record
inifile: C:\Users\Marco And Sofia\OpenBB\OpenBB_Experiments\openbb-mmprvds\tests\pytest.ini
rootdir: C:\Users\Marco And Sofia\OpenBB\OpenBB_Experiments\openbb-mmprvds\tests
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
config = pluginmanager.hook.pytest_cmdline_parse(
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --record
inifile: C:\Users\Marco And Sofia\OpenBB\OpenBB_Experiments\openbb-mmprvds\tests\pytest.ini
rootdir: C:\Users\Marco And Sofia\OpenBB\OpenBB_Experiments\openbb-mmprvds\tests
Would you be able to help?
Kind regards
Marco
The text was updated successfully, but these errors were encountered: