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

allow to execute one test multiple times with different parameters #12

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

PetrDlouhy
Copy link
Contributor

I wanted to perform the check_cache test on all of my caches so I modified the code to allow set/array in ALIVE_CHECKS settings.

@PetrDlouhy
Copy link
Contributor Author

@ipmb Could you please check this PR?

@ipmb
Copy link
Member

ipmb commented Mar 8, 2024

I think the list of tuples format should be the default. We can keep dict support as a legacy/deprecated option.

@PetrDlouhy PetrDlouhy force-pushed the multi_test branch 2 times, most recently from 327d5e5 to 59d6850 Compare April 26, 2024 11:17
@PetrDlouhy
Copy link
Contributor Author

@ipmb Thanks for the comment. I have transformed the code, so that list of tuples is default. Dict now throws deprecated warning.

I have also added test for the old behavior. I had to move ALIVE_CHECKS variable to the function, otherwise the override_settings would not work.

All tests should pass when you pull #14

@PetrDlouhy
Copy link
Contributor Author

PetrDlouhy commented Aug 15, 2024

@dchukhin Would you please look at this and #13 too?

@PetrDlouhy
Copy link
Contributor Author

@ipmb Is everything OK with this PR or should I make some more effort?

@ipmb
Copy link
Member

ipmb commented Aug 16, 2024

It's all good. I hope we can merge it soon... just doing some housekeeping to make this easier in the future.

Copy link
Contributor

@dchukhin dchukhin left a comment

Choose a reason for hiding this comment

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

Looks good to me.
Thanks for the contribution @PetrDlouhy!

@dchukhin dchukhin merged commit 8ef28e9 into lincolnloop:main Aug 30, 2024
6 checks passed
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.

3 participants