Skip to content Skip to sidebar Skip to footer
Showing posts with the label Fixtures

Define A Pytest Fixture Providing Multiple Arguments To Test Function

With pytest, I can define a fixture like so: @pytest.fixture def foo(): return 'blah' … Read more Define A Pytest Fixture Providing Multiple Arguments To Test Function

Passing Pytest Fixture In Parametrize

I'm getting following error by passing my fixture defined in conftest.py in @pytest.mark.parame… Read more Passing Pytest Fixture In Parametrize

Pytest Capture Not Working - Caplog And Capsys Are Empty

I am trying to create unit tests for a logger, but - even though the events are logged - the caplog… Read more Pytest Capture Not Working - Caplog And Capsys Are Empty

Pytest Parameterized Test With Custom Id Function

I have a parameterized test which takes str, and dict as an argument and so the name look pretty we… Read more Pytest Parameterized Test With Custom Id Function

In Django, Can You Run Seed Data Without Always Generating A Migration?

I'm using Django and Python 3.7. I have created a YAML file with seed data for my db ... ./mya… Read more In Django, Can You Run Seed Data Without Always Generating A Migration?