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

alluredir causing conflict as an ArgumentError in conftest.py #839

Open
ChrstnAnsl opened this issue Feb 12, 2025 · 0 comments
Open

alluredir causing conflict as an ArgumentError in conftest.py #839

ChrstnAnsl opened this issue Feb 12, 2025 · 0 comments

Comments

@ChrstnAnsl
Copy link

Whenever I try to add --alluredir as part of the conftest.py. I am getting an ArgumentError

Sample code:

def pytest_addoption(parser):
    if config.settings.allure:
        parser.addoption("--alluredir", default="allure-results", action="store")

Error message:


\AppData\Local\Programs\Python\Python311\Lib\argparse.py", line 1621, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
@ChrstnAnsl ChrstnAnsl changed the title alluredir causing conflict in conftest.py alluredir causing conflict as an ArgumentError in conftest.py Feb 12, 2025
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

1 participant