Example #1
0
 def test__pytest_configure__reloads_pytest_after_patching(self, imp_mock):
     pytest_configure(FakeConfig(spec=True))
     self.assertEqual(len(imp_mock.mock_calls), 1)
Example #2
0
 def test__pytest_configure__reloads_pytest_after_patching(self, imp_mock):
     pytest_configure(FakeConfig(spec=True))
     self.assertEqual(len(imp_mock.mock_calls), 1)
Example #3
0
 def test__pytest_configure__should_not_reload_configuration(self, imp_mock):
     pytest_configure(FakeConfig(spec=False))
     self.assertEqual(len(imp_mock.mock_calls), 0)
Example #4
0
 def test__pytest_configure__should_not_reload_configuration(self, imp_mock):
     pytest_configure(FakeConfig(spec=False))
     self.assertEqual(len(imp_mock.mock_calls), 0)