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

Temporary directories created without args required in pytest 7.3.0 #107

Closed
natalian98 opened this issue Apr 11, 2023 · 1 comment
Closed

Comments

@natalian98
Copy link

With the recent update of pytest to 7.3.0 (see changelog), pytest-operator in v0.22 is failing in some tests due to an error on setup:

Traceback (most recent call last):
  File "/home/runner/work/iam-bundle/iam-bundle/.tox/integration/lib/python3.10/site-packages/pytest_operator/plugin.py", line 149, in tmp_path_factory
    return pytest.TempPathFactory(
TypeError: TempPathFactory.__init__() missing 2 required positional arguments: 'retention_count' and 'retention_policy'

Some examples of failing tests:
cos-lite bundle
iam-bundle

A temporary solution is to pin pytest to 7.2.2.

@addyess
Copy link
Member

addyess commented Aug 10, 2023

@natalian98

Looks like that was resolved with this PR

I believe you should see improvement if you use pytest-operator > 0.23.0

@addyess addyess closed this as completed Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants