working with pytest def test_initial_value(calculator)assert calculator total = def test_add_one(calculator)calculator set( calculator add(assert calculator total = def test_subtract_one(calculator)calculator set( calculator sub(assert calculator total =- def test_add_one_and_one(calculator)calculator set( calculator add(calculator set( calculator add(assert calculator total = if we run this version of the teststhen the output shows when the various fixtures are runsession_scope_fixture module_scope_fixture class_scope_fixture calculator fixture class_scope_fixture calculator fixture class_scope_fixture calculator fixture class_scope_fixture calculator fixture note that higher scoped fixtures are instantiated first parameterised tests one common requirement of test to run the same tests multiple times with several different input values this can greatly reduce the number of tests that must be defined such tests are referred to as parametrised testswith the parameter values for the test specified using the @pytest mark parametrize decorator