-
Notifications
You must be signed in to change notification settings - Fork 41
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
Is it possible to use fixture values in case or value lists? #121
Comments
That not true in general: #[fixture]
pub fn ppp() -> String {
"ppp".to_owned()
}
fn fff(s: &str) -> String {
format!("{}-{}", s, s)
}
#[rstest]
#[case(fff(&ppp))]
fn my_test(ppp: String, #[case] password: String) {} Compile fine. The issue here is that you use I just hacked a solution and it works but I need to shut down all warnings and check if I don't have any regression. I'll fix it ASAP |
Cool! |
Can you make a patch release with this? |
@la10736 friendly ping :) |
Sorry... I missed and forget it.... I'll do a release ASAP |
Released... sorry for the delay :( |
Alright, but don't forget the tag! Thanks. :) |
I did the tag too... |
Sorry, I must've missed it. Thanks for the work! :) |
Hey, I realize I have a somewhat weird case but bear with me.
So I want to use the
rng()
fixture inmy_test()
but also use the resultingrng
value inmake_password
which provides a value to mycase
.This currently doesn't work and I suppose it's not currently intended to work. Is there any chance this could be made to work?
The text was updated successfully, but these errors were encountered: