22 with patch(
'mevis.MLAB.moduleInfo')
as moduleInfoMock:
23 moduleName =
"dummyModuleName"
24 moduleInfoMock.return_value = {TESTS_TO_OMIT_TAG:
" ".join([FORMAL_TEST_IDENTIFIER, META_TEST_IDENTIFIER])}
27 self.assertListEqual([FORMAL_TEST_IDENTIFIER, META_TEST_IDENTIFIER], omittedTests)
28 moduleInfoMock.assert_called_once_with(moduleName)
49 with patch(
'TestSupport.Generic.getTestsToOmit')
as omitMock:
50 moduleName =
"DummyModuleName"
52 omitMock.return_value = [FORMAL_TEST_IDENTIFIER, META_TEST_IDENTIFIER]
54 self.assertTrue(omitted)
56 self.assertFalse(Formal.testModule(moduleName))
57 self.assertFalse(FormalMacroModule.testModule(moduleName))
58 self.assertFalse(Meta.testModule(moduleName))
61 omitMock.return_value = [ALL_TESTS_IDENTIFIER]
63 self.assertTrue(omitted)
65 self.assertFalse(Formal.testModule(moduleName))
66 self.assertFalse(FormalMacroModule.testModule(moduleName))
67 self.assertFalse(Meta.testModule(moduleName))
70 omitMock.return_value = []
72 self.assertFalse(omitted)
74 self.assertTrue(Formal.testModule(moduleName))
75 self.assertTrue(FormalMacroModule.testModule(moduleName))
76 self.assertTrue(Meta.testModule(moduleName))