Skip to content
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

pytest: error: unrecognized arguments: --adsinfo #3

Open
nalexeyev opened this issue Feb 26, 2024 · 1 comment
Open

pytest: error: unrecognized arguments: --adsinfo #3

nalexeyev opened this issue Feb 26, 2024 · 1 comment

Comments

@nalexeyev
Copy link

Hi.
(just in case, I use poetry-based version https://github.com/actigraph/pytest-ads-testplan/tree/poetry as otherwise it rejects installing)

Execution of the command like

pytest -m regress_nightly --adsinfo=XYOrg,XYTestProject,123456

causes error

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
0.533 pytest: error: unrecognized arguments: --adsinfo=XYOrg,XYTestProject,123456

I tried to add file_or_dir (in my case it is tests/unit/test_template_python.py) before "--adsinfo" and at the end of line but the error is the same.

The file tests/unit/test_template_python.py contains only the following:

import pytest
import time

@pytest.mark.regress_nightly
@pytest.mark.regress_smoke
@pytest.mark.suite_id("2116254")
@pytest.mark.test_case("445556")
@pytest.mark.revision("1")

def test_init(mocker):
    pass
@ahmedsza
Copy link

I have the exact same issue. @nalexeyev - any chance you found a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants