-
Notifications
You must be signed in to change notification settings - Fork 668
2.6.0: pytest based test suite is failing #1368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried running the tests via I usually run the unit tests with:
For the functional tests it would be:
Though I have not personally run the functional tests locally. I let the CI do it. |
tox has a bit longer dependencies. than pytest. |
So here is full tox execution output with default settikngs ansd still there are some issues ..
|
@kloczek: as @JohnVillalovos stated we let tox manage test environments and dependencies, and this is documented in the Readme. If you'd like to run it manually you need to install the dependencies as is done in tox.ini If you try to just run pytest without any arguments, it will also try to run integration tests against a docker container, which needs additional dependencies like pytest-docker and can take up to 10 minutes. I'm not sure what you mean by "pytest officially is going to replace "python setup.py test", as this is not how we invocate it currently. So if you really do want to manually run pytest, make sure you have all the dependencies installed and try to limit it to running only unit tests by specifying the path to The errors you see in the full tox run are mostly from the pep8 run, which we no longer run in CI as we use black, but maybe we can fix that soon. It's not really new in 2.6.0 though :) Either way, I'd recommend limiting the tox run to the environments that are currently also run in CI. But I see from your logs you are probably running this from an RPM package or so, maybe this needs an update on the maintainer's side - not sure, would need to look into it for a bit more context. |
Unfortunately that PR does not apply cleanly on top of last release code. |
Just tested 2.7.0 and tox is now OK. Thx :) + /usr/bin/python3 -Bm tox --skip-missing-interpreters -e py3
py3 create: /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/.tox/py3
py3 installdeps: -r/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/requirements.txt, -r/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/test-requirements.txt
py3 develop-inst: /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0
py3 installed: attrs==20.3.0,certifi==2020.12.5,chardet==4.0.0,coverage==5.5,httmock==1.4.0,idna==2.10,iniconfig==1.1.1,mock==4.0.3,mypy==0.812,mypy-extensions==0.4.3,packaging==20.9,pluggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.3,pytest-cov==2.11.1,# Editable install with no version control (python-gitlab==2.7.0),-e /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0,requests==2.25.1,requests-toolbelt==0.9.1,responses==0.13.2,six==1.15.0,toml==0.10.2,typed-ast==1.4.3,typing-extensions==3.7.4.3,urllib3==1.26.4
py3 run-test-pre: PYTHONHASHSEED='2856488338'
py3 run-test: commands[0] | pytest gitlab/tests
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
cachedir: .tox/py3/.pytest_cache
rootdir: /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0
plugins: cov-2.11.1
collected 265 items
gitlab/tests/test_base.py ................ [ 6%]
gitlab/tests/test_cli.py ....... [ 8%]
gitlab/tests/test_config.py ......... [ 12%]
gitlab/tests/test_exceptions.py . [ 12%]
gitlab/tests/test_gitlab.py ........... [ 16%]
gitlab/tests/test_gitlab_auth.py ..... [ 18%]
gitlab/tests/test_gitlab_http_methods.py .................. [ 25%]
gitlab/tests/test_types.py ....... [ 27%]
gitlab/tests/test_utils.py .. [ 28%]
gitlab/tests/mixins/test_meta_mixins.py ... [ 29%]
gitlab/tests/mixins/test_mixin_methods.py .............. [ 35%]
gitlab/tests/mixins/test_object_mixins_attributes.py ...... [ 37%]
gitlab/tests/objects/test_appearance.py .. [ 38%]
gitlab/tests/objects/test_applications.py . [ 38%]
gitlab/tests/objects/test_audit_events.py ...... [ 40%]
gitlab/tests/objects/test_badges.py ............ [ 45%]
gitlab/tests/objects/test_bridges.py . [ 45%]
gitlab/tests/objects/test_commits.py .... [ 47%]
gitlab/tests/objects/test_deploy_tokens.py . [ 47%]
gitlab/tests/objects/test_deployments.py . [ 47%]
gitlab/tests/objects/test_environments.py . [ 48%]
gitlab/tests/objects/test_groups.py ...s..s [ 50%]
gitlab/tests/objects/test_hooks.py . [ 51%]
gitlab/tests/objects/test_issues.py ... [ 52%]
gitlab/tests/objects/test_job_artifacts.py . [ 52%]
gitlab/tests/objects/test_packages.py ..... [ 54%]
gitlab/tests/objects/test_personal_access_tokens.py .. [ 55%]
gitlab/tests/objects/test_pipeline_schedules.py . [ 55%]
gitlab/tests/objects/test_project_access_tokens.py ... [ 56%]
gitlab/tests/objects/test_project_import_export.py ...... [ 59%]
gitlab/tests/objects/test_project_merge_request_approvals.py ...... [ 61%]
gitlab/tests/objects/test_project_statistics.py . [ 61%]
gitlab/tests/objects/test_projects.py ...ssssssssssssssssssssssssssssssssssss [ 76%]
gitlab/tests/objects/test_releases.py ..... [ 78%]
gitlab/tests/objects/test_remote_mirrors.py ... [ 79%]
gitlab/tests/objects/test_resource_label_events.py ... [ 80%]
gitlab/tests/objects/test_resource_milestone_events.py .. [ 81%]
gitlab/tests/objects/test_resource_state_events.py .... [ 83%]
gitlab/tests/objects/test_runners.py ............. [ 87%]
gitlab/tests/objects/test_services.py .... [ 89%]
gitlab/tests/objects/test_snippets.py ... [ 90%]
gitlab/tests/objects/test_submodules.py . [ 90%]
gitlab/tests/objects/test_todos.py .. [ 91%]
gitlab/tests/objects/test_users.py ....... [ 94%]
gitlab/tests/objects/test_variables.py ............... [100%]
===================================================================== 227 passed, 38 skipped in 1.58s ======================================================================
_________________________________________________________________________________ summary __________________________________________________________________________________
py3: commands succeeded
congratulations :) I aave some addytional question. + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-gitlab-2.7.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-gitlab-2.7.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.0
collected 421 items
Starting GitLab container.
Waiting for GitLab to reconfigure.
This may take a few minutes.
gitlab/tests/test_base.py ................ [ 3%]
gitlab/tests/test_cli.py ....... [ 5%]
gitlab/tests/test_config.py ......... [ 7%]
gitlab/tests/test_exceptions.py . [ 7%]
gitlab/tests/test_gitlab.py ........... [ 10%]
gitlab/tests/test_gitlab_auth.py ..... [ 11%]
gitlab/tests/test_gitlab_http_methods.py .................. [ 15%]
gitlab/tests/test_types.py ....... [ 17%]
gitlab/tests/test_utils.py .. [ 18%]
gitlab/tests/mixins/test_meta_mixins.py ... [ 18%]
gitlab/tests/mixins/test_mixin_methods.py .............. [ 22%]
gitlab/tests/mixins/test_object_mixins_attributes.py ...... [ 23%]
gitlab/tests/objects/test_appearance.py .. [ 23%]
gitlab/tests/objects/test_applications.py . [ 24%]
gitlab/tests/objects/test_audit_events.py ...... [ 25%]
gitlab/tests/objects/test_badges.py ............ [ 28%]
gitlab/tests/objects/test_bridges.py . [ 28%]
gitlab/tests/objects/test_commits.py .... [ 29%]
gitlab/tests/objects/test_deploy_tokens.py . [ 29%]
gitlab/tests/objects/test_deployments.py . [ 30%]
gitlab/tests/objects/test_environments.py . [ 30%]
gitlab/tests/objects/test_groups.py ...s..s [ 32%]
gitlab/tests/objects/test_hooks.py . [ 32%]
gitlab/tests/objects/test_issues.py ... [ 33%]
gitlab/tests/objects/test_job_artifacts.py . [ 33%]
gitlab/tests/objects/test_packages.py ..... [ 34%]
gitlab/tests/objects/test_personal_access_tokens.py .. [ 34%]
gitlab/tests/objects/test_pipeline_schedules.py . [ 35%]
gitlab/tests/objects/test_project_access_tokens.py ... [ 35%]
gitlab/tests/objects/test_project_import_export.py ...... [ 37%]
gitlab/tests/objects/test_project_merge_request_approvals.py ...... [ 38%]
gitlab/tests/objects/test_project_statistics.py . [ 38%]
gitlab/tests/objects/test_projects.py ...ssssssssssssssssssssssssssssssssssss [ 48%]
gitlab/tests/objects/test_releases.py ..... [ 49%]
gitlab/tests/objects/test_remote_mirrors.py ... [ 50%]
gitlab/tests/objects/test_resource_label_events.py ... [ 50%]
gitlab/tests/objects/test_resource_milestone_events.py .. [ 51%]
gitlab/tests/objects/test_resource_state_events.py .... [ 52%]
gitlab/tests/objects/test_runners.py ............. [ 55%]
gitlab/tests/objects/test_services.py .... [ 56%]
gitlab/tests/objects/test_snippets.py ... [ 57%]
gitlab/tests/objects/test_submodules.py . [ 57%]
gitlab/tests/objects/test_todos.py .. [ 57%]
gitlab/tests/objects/test_users.py ....... [ 59%]
gitlab/tests/objects/test_variables.py ............... [ 62%]
tools/functional/api/test_clusters.py EE [ 63%]
tools/functional/api/test_current_user.py EEEE [ 64%]
tools/functional/api/test_deploy_keys.py E [ 64%]
tools/functional/api/test_deploy_tokens.py EE [ 65%]
tools/functional/api/test_gitlab.py EEEEEEEEEEEEEEEEEEsEE [ 70%]
tools/functional/api/test_groups.py EsEEEEE [ 71%]
tools/functional/api/test_import_export.py EE [ 72%]
tools/functional/api/test_issues.py EEEEEE [ 73%]
tools/functional/api/test_merge_requests.py EEEEEEs [ 75%]
tools/functional/api/test_packages.py EE [ 75%]
tools/functional/api/test_projects.py EEsEEEEEEEEEEEEEEEEE [ 80%]
tools/functional/api/test_releases.py EEE [ 81%]
tools/functional/api/test_repository.py EEEEEEEE [ 83%]
tools/functional/api/test_snippets.py EEEE [ 84%]
tools/functional/api/test_users.py EEEEEEEEEEEEE [ 87%]
tools/functional/api/test_variables.py EEE [ 87%]
tools/functional/cli/test_cli_artifacts.py E [ 88%]
tools/functional/cli/test_cli_packages.py EE [ 88%]
tools/functional/cli/test_cli_v4.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 99%]
tools/functional/cli/test_cli_variables.py EEE [100%]
================================================================================== ERRORS ==================================================================================
_________________________________________________________________ ERROR at setup of test_project_clusters __________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/api/test_clusters.py, line 1
def test_project_clusters(project):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 131
@pytest.fixture(scope="session")
def gl(gitlab_config):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 105
@pytest.fixture(scope="session")
def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, test_dir):
E fixture 'docker_ip' not found
> available fixtures: DEPLOY_KEY, GPG_KEY, SSH_KEY, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_is_alive, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, deploy_token, docker_compose_file, doctest_namespace, event_loop, freezer, fs, gitlab_config, gitlab_runner, gl, group, group_deploy_token, group_label, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, issue, label, milestone, mocker, module_mocker, monkeypatch, no_cover, package_mocker, project, project_file, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, release, session_mocker, temp_dir, test_dir, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, user, variable, virtualenv, wait_for_sidekiq, worker_id, workspace
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py:105
__________________________________________________________________ ERROR at setup of test_group_clusters ___________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/api/test_clusters.py, line 25
def test_group_clusters(group):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 131
@pytest.fixture(scope="session")
def gl(gitlab_config):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 105
@pytest.fixture(scope="session")
def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, test_dir):
E fixture 'docker_ip' not found
> available fixtures: DEPLOY_KEY, GPG_KEY, SSH_KEY, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_is_alive, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, deploy_token, docker_compose_file, doctest_namespace, event_loop, freezer, fs, gitlab_config, gitlab_runner, gl, group, group_deploy_token, group_label, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, issue, label, milestone, mocker, module_mocker, monkeypatch, no_cover, package_mocker, project, project_file, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, release, session_mocker, temp_dir, test_dir, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, user, variable, virtualenv, wait_for_sidekiq, worker_id, workspace
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py:105
________________________________________________________________ ERROR at setup of test_current_user_email _________________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/api/test_current_user.py, line 1
def test_current_user_email(gl):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 131
@pytest.fixture(scope="session")
def gl(gitlab_config):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 105
@pytest.fixture(scope="session")
def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, test_dir):
E fixture 'docker_ip' not found
> available fixtures: DEPLOY_KEY, GPG_KEY, SSH_KEY, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_is_alive, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, deploy_token, docker_compose_file, doctest_namespace, event_loop, freezer, fs, gitlab_config, gitlab_runner, gl, group, group_deploy_token, group_label, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, issue, label, milestone, mocker, module_mocker, monkeypatch, no_cover, package_mocker, project, project_file, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, release, session_mocker, temp_dir, test_dir, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, user, variable, virtualenv, wait_for_sidekiq, worker_id, workspace
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py:105
_______________________________________________________________ ERROR at setup of test_current_user_gpg_keys _______________________________________________________________
[..]
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/cli/test_cli_variables.py, line 15
def test_list_project_variables(gitlab_cli, project):
file /home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py, line 105
@pytest.fixture(scope="session")
def gitlab_config(check_is_alive, docker_ip, docker_services, temp_dir, test_dir):
E fixture 'docker_ip' not found
> available fixtures: DEPLOY_KEY, GPG_KEY, SSH_KEY, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, check_is_alive, class_based_httpbin, class_based_httpbin_secure, class_mocker, cov, deploy_token, docker_compose_file, doctest_namespace, event_loop, freezer, fs, gitlab_cli, gitlab_config, gitlab_runner, gl, group, group_deploy_token, group_label, httpbin, httpbin_both, httpbin_ca_bundle, httpbin_secure, issue, label, milestone, mocker, module_mocker, monkeypatch, no_cover, package_mocker, project, project_file, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, release, session_mocker, temp_dir, test_dir, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, user, variable, virtualenv, wait_for_sidekiq, worker_id, workspace
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/python-gitlab-2.7.0/tools/functional/conftest.py:105
========================================================================= short test summary info ==========================================================================
SKIPPED [1] gitlab/tests/objects/test_groups.py:74: GitLab API endpoint not implemented
SKIPPED [1] gitlab/tests/objects/test_groups.py:93: GitLab API endpoint not implemented
SKIPPED [1] gitlab/tests/objects/test_projects.py:86: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:91: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:96: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:101: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:106: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:111: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:116: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:121: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:126: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:131: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:136: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:141: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:146: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:151: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:156: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:161: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:166: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:171: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:176: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:181: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:186: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:191: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:196: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:201: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:206: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:211: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:216: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:221: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:226: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:231: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:236: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:241: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:246: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:251: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:256: missing test
SKIPPED [1] gitlab/tests/objects/test_projects.py:261: missing test
SKIPPED [1] tools/functional/api/test_gitlab.py:138: unconditional skip
SKIPPED [1] tools/functional/api/test_groups.py:97: Commented out in legacy test
SKIPPED [1] tools/functional/api/test_merge_requests.py:89: flaky test
SKIPPED [1] tools/functional/api/test_projects.py:43: Commented out in legacy test
ERROR tools/functional/api/test_clusters.py::test_project_clusters
ERROR tools/functional/api/test_clusters.py::test_group_clusters
ERROR tools/functional/api/test_current_user.py::test_current_user_email
ERROR tools/functional/api/test_current_user.py::test_current_user_gpg_keys
ERROR tools/functional/api/test_current_user.py::test_current_user_ssh_keys
ERROR tools/functional/api/test_current_user.py::test_current_user_status
ERROR tools/functional/api/test_deploy_keys.py::test_project_deploy_keys
ERROR tools/functional/api/test_deploy_tokens.py::test_project_deploy_tokens
ERROR tools/functional/api/test_deploy_tokens.py::test_group_deploy_tokens
ERROR tools/functional/api/test_gitlab.py::test_auth_from_config
ERROR tools/functional/api/test_gitlab.py::test_broadcast_messages
ERROR tools/functional/api/test_gitlab.py::test_markdown
ERROR tools/functional/api/test_gitlab.py::test_lint
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_queue_metrics
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_process_metrics
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_job_stats
ERROR tools/functional/api/test_gitlab.py::test_sidekiq_compound_metrics
ERROR tools/functional/api/test_gitlab.py::test_gitlab_settings
ERROR tools/functional/api/test_gitlab.py::test_template_dockerfile
ERROR tools/functional/api/test_gitlab.py::test_template_gitignore
ERROR tools/functional/api/test_gitlab.py::test_template_gitlabciyml
ERROR tools/functional/api/test_gitlab.py::test_template_license
ERROR tools/functional/api/test_gitlab.py::test_hooks
ERROR tools/functional/api/test_gitlab.py::test_namespaces
ERROR tools/functional/api/test_gitlab.py::test_notification_settings
ERROR tools/functional/api/test_gitlab.py::test_user_activities
ERROR tools/functional/api/test_gitlab.py::test_events
ERROR tools/functional/api/test_gitlab.py::test_pagination
ERROR tools/functional/api/test_gitlab.py::test_rate_limits
ERROR tools/functional/api/test_groups.py::test_groups
ERROR tools/functional/api/test_groups.py::test_group_notification_settings
ERROR tools/functional/api/test_groups.py::test_group_badges
ERROR tools/functional/api/test_groups.py::test_group_milestones
ERROR tools/functional/api/test_groups.py::test_group_custom_attributes
ERROR tools/functional/api/test_groups.py::test_group_subgroups_projects
ERROR tools/functional/api/test_import_export.py::test_group_import_export
ERROR tools/functional/api/test_import_export.py::test_project_import_export
ERROR tools/functional/api/test_issues.py::test_create_issue
ERROR tools/functional/api/test_issues.py::test_issue_notes
ERROR tools/functional/api/test_issues.py::test_issue_labels
ERROR tools/functional/api/test_issues.py::test_issue_events
ERROR tools/functional/api/test_issues.py::test_issue_milestones
ERROR tools/functional/api/test_issues.py::test_issue_discussions
ERROR tools/functional/api/test_merge_requests.py::test_merge_requests
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_discussion
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_labels
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_milestone_events
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_basic
ERROR tools/functional/api/test_merge_requests.py::test_merge_request_rebase
ERROR tools/functional/api/test_packages.py::test_list_project_packages
ERROR tools/functional/api/test_packages.py::test_list_group_packages
ERROR tools/functional/api/test_projects.py::test_create_project
ERROR tools/functional/api/test_projects.py::test_project_badges
ERROR tools/functional/api/test_projects.py::test_project_custom_attributes
ERROR tools/functional/api/test_projects.py::test_project_environments
ERROR tools/functional/api/test_projects.py::test_project_events
ERROR tools/functional/api/test_projects.py::test_project_file_uploads
ERROR tools/functional/api/test_projects.py::test_project_forks
ERROR tools/functional/api/test_projects.py::test_project_hooks
ERROR tools/functional/api/test_projects.py::test_project_housekeeping
ERROR tools/functional/api/test_projects.py::test_project_labels
ERROR tools/functional/api/test_projects.py::test_project_milestones
ERROR tools/functional/api/test_projects.py::test_project_pages_domains
ERROR tools/functional/api/test_projects.py::test_project_protected_branches
ERROR tools/functional/api/test_projects.py::test_project_remote_mirrors
ERROR tools/functional/api/test_projects.py::test_project_services
ERROR tools/functional/api/test_projects.py::test_project_stars
ERROR tools/functional/api/test_projects.py::test_project_tags
ERROR tools/functional/api/test_projects.py::test_project_triggers
ERROR tools/functional/api/test_projects.py::test_project_wiki
ERROR tools/functional/api/test_releases.py::test_create_project_release
ERROR tools/functional/api/test_releases.py::test_delete_project_release
ERROR tools/functional/api/test_releases.py::test_create_project_release_links
ERROR tools/functional/api/test_repository.py::test_repository_files
ERROR tools/functional/api/test_repository.py::test_repository_tree
ERROR tools/functional/api/test_repository.py::test_create_commit
ERROR tools/functional/api/test_repository.py::test_create_commit_status
ERROR tools/functional/api/test_repository.py::test_commit_signature
ERROR tools/functional/api/test_repository.py::test_commit_comment
ERROR tools/functional/api/test_repository.py::test_commit_discussion
ERROR tools/functional/api/test_repository.py::test_revert_commit
ERROR tools/functional/api/test_snippets.py::test_snippets
ERROR tools/functional/api/test_snippets.py::test_project_snippets
ERROR tools/functional/api/test_snippets.py::test_project_snippet_discussion
ERROR tools/functional/api/test_snippets.py::test_project_snippet_file
ERROR tools/functional/api/test_users.py::test_create_user
ERROR tools/functional/api/test_users.py::test_block_user
ERROR tools/functional/api/test_users.py::test_delete_user
ERROR tools/functional/api/test_users.py::test_user_projects_list
ERROR tools/functional/api/test_users.py::test_user_events_list
ERROR tools/functional/api/test_users.py::test_user_bio
ERROR tools/functional/api/test_users.py::test_list_multiple_users
ERROR tools/functional/api/test_users.py::test_user_gpg_keys
ERROR tools/functional/api/test_users.py::test_user_ssh_keys
ERROR tools/functional/api/test_users.py::test_user_email
ERROR tools/functional/api/test_users.py::test_user_custom_attributes
ERROR tools/functional/api/test_users.py::test_user_impersonation_tokens
ERROR tools/functional/api/test_users.py::test_user_identities
ERROR tools/functional/api/test_variables.py::test_instance_variables
ERROR tools/functional/api/test_variables.py::test_group_variables
ERROR tools/functional/api/test_variables.py::test_project_variables
ERROR tools/functional/cli/test_cli_artifacts.py::test_cli_artifacts
ERROR tools/functional/cli/test_cli_packages.py::test_list_project_packages
ERROR tools/functional/cli/test_cli_packages.py::test_list_group_packages
ERROR tools/functional/cli/test_cli_v4.py::test_create_project
ERROR tools/functional/cli/test_cli_v4.py::test_update_project
ERROR tools/functional/cli/test_cli_v4.py::test_create_group
ERROR tools/functional/cli/test_cli_v4.py::test_update_group
ERROR tools/functional/cli/test_cli_v4.py::test_create_user
ERROR tools/functional/cli/test_cli_v4.py::test_get_user_by_id
ERROR tools/functional/cli/test_cli_v4.py::test_list_users_verbose_output
ERROR tools/functional/cli/test_cli_v4.py::test_cli_args_not_in_output
ERROR tools/functional/cli/test_cli_v4.py::test_add_member_to_project
ERROR tools/functional/cli/test_cli_v4.py::test_list_user_memberships
ERROR tools/functional/cli/test_cli_v4.py::test_project_create_file
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_issue
ERROR tools/functional/cli/test_cli_v4.py::test_create_issue_note
ERROR tools/functional/cli/test_cli_v4.py::test_create_branch
ERROR tools/functional/cli/test_cli_v4.py::test_create_merge_request
ERROR tools/functional/cli/test_cli_v4.py::test_accept_request_merge
ERROR tools/functional/cli/test_cli_v4.py::test_revert_commit
ERROR tools/functional/cli/test_cli_v4.py::test_get_commit_signature_not_found
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_label
ERROR tools/functional/cli/test_cli_v4.py::test_list_project_labels
ERROR tools/functional/cli/test_cli_v4.py::test_update_project_label
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project_label
ERROR tools/functional/cli/test_cli_v4.py::test_create_group_label
ERROR tools/functional/cli/test_cli_v4.py::test_list_group_labels
ERROR tools/functional/cli/test_cli_v4.py::test_update_group_label
ERROR tools/functional/cli/test_cli_v4.py::test_delete_group_label
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_get_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_update_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_list_project_variables
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project_variable
ERROR tools/functional/cli/test_cli_v4.py::test_delete_branch
ERROR tools/functional/cli/test_cli_v4.py::test_project_upload_file
ERROR tools/functional/cli/test_cli_v4.py::test_get_application_settings
ERROR tools/functional/cli/test_cli_v4.py::test_update_application_settings
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_with_values_from_file
ERROR tools/functional/cli/test_cli_v4.py::test_create_project_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_list_all_deploy_tokens
ERROR tools/functional/cli/test_cli_v4.py::test_list_project_deploy_tokens
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_create_group_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_list_group_deploy_tokens
ERROR tools/functional/cli/test_cli_v4.py::test_delete_group_deploy_token
ERROR tools/functional/cli/test_cli_v4.py::test_delete_project
ERROR tools/functional/cli/test_cli_v4.py::test_delete_group
ERROR tools/functional/cli/test_cli_variables.py::test_list_instance_variables
ERROR tools/functional/cli/test_cli_variables.py::test_list_group_variables
ERROR tools/functional/cli/test_cli_variables.py::test_list_project_variables
=============================================================== 227 passed, 42 skipped, 152 errors in 2.65s ================================================================ Is it maybe someting which could be corrected to be able to use pytest instead of tox? |
No otherwise we wouldn't use tox. I think tox also runs scripts to start up the required containers etc. Maybe you can execute the shell script and execute the tests manually, but I really don't see a reason not to test with tox. |
Yeah, I guess there are two options:
- /usr/bin/python3 -Bm pytest -ra
+ /usr/bin/python3 -m pip install -r docker-requirements.txt
+ /usr/bin/python3 -Bm pytest -ra --script-launch-mode=subprocess
- /usr/bin/python3 -Bm pytest -ra
+ /usr/bin/python3 -Bm pytest -ra gitlab/tests |
The text was updated successfully, but these errors were encountered: