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

Make container scopes configurable #91

Conversation

austinkeller
Copy link

Resolves #89



def containers_scope(fixture_name, config):
return config.getoption("--containers-scope-fixture")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably a typo?

@@ -29,6 +29,25 @@ def execute(command, success_codes=(0,)):
return output


def pytest_addoption(parser):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to import this somewhere otherwise it's not "parsed" and seen by pytest, because for me it's not working otherwise

@@ -29,6 +29,25 @@ def execute(command, success_codes=(0,)):
return output


def pytest_addoption(parser):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to import this somewhere otherwise it's not "parsed" and seen by pytest, because for me it's not working otherwise

@augi
Copy link
Member

augi commented Jan 25, 2024

IMHO implemented in another PR that has just been closed.

@augi augi closed this Jan 25, 2024
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

Successfully merging this pull request may close these issues.

Allow for overriding of pytest fixture scope
3 participants