inveniosoftware / invenio-accounts-rest

Invenio modules that adds accounts REST API.
https://invenio-accounts-rest.readthedocs.io
GNU General Public License v2.0
0 stars 13 forks source link

tests: Fix failing pytests #39

Open ParthS007 opened 3 years ago

ParthS007 commented 3 years ago
 ==================== short test summary info ==============
FAILED invenio_accounts_rest/serializers.py::PYCODESTYLE
ERROR tests/test_views.py::test_get_user_properties[app0]
ERROR tests/test_views.py::test_update_user_properties[app0]
ERROR tests/test_views.py::test_user_search[app0]
ERROR tests/test_views.py::test_role_users_search[app0]
ERROR tests/test_views.py::test_get_user_properties[app1]
ERROR tests/test_views.py::test_update_user_properties[app1]
ERROR tests/test_views.py::test_user_search[app1]
ERROR tests/test_views.py::test_role_users_search[app1]
mvidalgarcia commented 3 years ago

More detailed

=============================================================================================== ERRORS ===============================================================================================
__________________________________________________________________________ ERROR at setup of test_get_user_properties[app0] __________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
________________________________________________________________________ ERROR at setup of test_update_user_properties[app0] _________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
______________________________________________________________________________ ERROR at setup of test_user_search[app0] ______________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
___________________________________________________________________________ ERROR at setup of test_role_users_search[app0] ___________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
__________________________________________________________________________ ERROR at setup of test_get_user_properties[app1] __________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
________________________________________________________________________ ERROR at setup of test_update_user_properties[app1] _________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
______________________________________________________________________________ ERROR at setup of test_user_search[app1] ______________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()
___________________________________________________________________________ ERROR at setup of test_role_users_search[app1] ___________________________________________________________________________
ScopeMismatch: You tried to access the 'function' scoped fixture 'accounts_rest_permission_factory' with a 'module' scoped request object, involved factories
../../../.virtualenvs/i-accounts-rest/lib/python3.8/site-packages/pytest_flask/plugin.py:80:  def _monkeypatch_response_class(request, monkeypatch)
tests/conftest.py:146:  def app(request, accounts_rest_permission_factory)
tests/conftest.py:58:  def accounts_rest_permission_factory()