PyTest: Fixture Class setup and teardown output



$ pytest -sq test_class.py


setup_class called once for the class
<class 'test_class.TestClass'>
  setup_method called for every method 1
<test_class.TestClass object at 0x7d5621762960>
    one
    one after
.  teardown_method called for every method 1
  setup_method called for every method mydb 1
<test_class.TestClass object at 0x7d5620ee6060>
    two
F  teardown_method called for every method 1
  setup_method called for every method 1
<test_class.TestClass object at 0x7d5620c1c830>
    three
    three after
.  teardown_method called for every method 1
teardown_class called once for the class mydb