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

Markers in parametrized tests #12

Open
hackebrot opened this issue Feb 17, 2016 · 2 comments
Open

Markers in parametrized tests #12

hackebrot opened this issue Feb 17, 2016 · 2 comments

Comments

@hackebrot
Copy link
Owner

No description provided.

@danielhao5
Copy link

Hi,

Thanks for the great tips.
What if I have a decimal_to_base(num, base) function that will take 2 parameters as input and I like to test multiple numbers. Examples:

decimal_to_base(10, 2)
1010
decimal_to_base(5, 2)
101

decimal_to_base(10, 8)
12

Can you show some examples? Thanks.

Daniel

@hackebrot
Copy link
Owner Author

Hi @danielhao5! 👋🏻

There's an example for using mark.parametrize with multiple values in the beginning of my blog post at https://raphael.codes/blog/create-parametrized-tests-with-pytest/.

Hope that helps!

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

No branches or pull requests

2 participants