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

better test bucket management #813

Open
ppolewicz opened this issue Jul 23, 2022 · 0 comments
Open

better test bucket management #813

ppolewicz opened this issue Jul 23, 2022 · 0 comments
Labels

Comments

@ppolewicz
Copy link
Collaborator

We need to create a pytest factory which will produce fixtures (create buckets on demand), and once the test is over, the factory will delete all created buckets. Currently we pass fixture bucket_name to all tests, but 1) it creates only one bucket, while there should be many sometimes 2) it doesn't allow pass parameters to bucket creation, but in some tests we need non-default bucket configuration during creation. When passing bucket_factory to each test, the test will call bucket_factory(params), and this will create bucket and auto-clean after test.

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

No branches or pull requests

1 participant