PyTest Fixture setup and teardown output



test_fixture.py .F.


$ pytest -sq test_fixture.py



setup_module

  setup_function
    test_one
    test_one after
  teardown_function

  setup_function
    test_two
  teardown_function

  setup_function
    test_three
    test_three after
  teardown_function

teardown_module


Note, the teardown_function is executed even after failed tests.