Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about parametrized-testing

Read more about parametrized-testing

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - parametrized-testing

pytest mark parametrization with dependency on each other

I'm using pytest for unittests and I would like to parametrize the tests. I know I can use @pytest.mark.parametrize at class level and at method level. @pytest.mark.parametrize("param1", [1,...
test-img

avans

python-3.x

pytest

parametrized-testing

Votes: 0

Answers: 1

Latest Answer

This should work for you: import pytest parameter1 = [1, 2, 3] @pytest.mark.parametrize("param1", parameter1) class TestXYZ: @pytest.mark.parametrize("param2", [4, 3, paramet...
test-img

Michael Mintz

pytest: use fixture with pandas dataframe for parametrization

I have a fixture, which returns a pd.DataFrame. I need to insert the individual columns (pd.Series) into a unit test and I would like to use parametrize. Here's a toy example without parametrize. Ever...
test-img

Andi

python

pandas

pytest

fixtures

parametrized-testing

Votes: 0

Answers: 1

Latest Answer

If you try to generate multiple data from a fixture based on another fixture you will get the yield_fixture function has more than one 'yield' error message. One solution is to use fixture parametriza...
test-img

Romain

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved