File tree Expand file tree Collapse file tree
tests/unit/plugins/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010class TestSAPRfcModule (ModuleTestCase ):
1111
1212 def setUp (self ):
13+ super (TestSAPRfcModule , self ).setUp ()
1314 self .pyrfc_mock = {
1415 'pyrfc' : MagicMock (),
1516 'pyrfc.Connection' : MagicMock ()
1617 }
1718 patcher = patch .dict ('sys.modules' , self .pyrfc_mock )
1819 patcher .start ()
1920 self .addCleanup (patcher .stop )
20- super (TestSAPRfcModule , self ).setUp ()
2121 from ansible_collections .community .sap_libs .plugins .modules import sap_company
2222 self .module = sap_company
2323
Original file line number Diff line number Diff line change 1010class TestSapcontrolModule (ModuleTestCase ):
1111
1212 def setUp (self ):
13+ super (TestSapcontrolModule , self ).setUp ()
1314 self .suds_mock = {
1415 'suds.client' : MagicMock (),
1516 'suds.sudsobject' : MagicMock (),
@@ -18,7 +19,6 @@ def setUp(self):
1819 patcher = patch .dict ('sys.modules' , self .suds_mock )
1920 patcher .start ()
2021 self .addCleanup (patcher .stop )
21- super (TestSapcontrolModule , self ).setUp ()
2222 from ansible_collections .community .sap_libs .plugins .modules import sap_control_exec
2323 self .module = sap_control_exec
2424
Original file line number Diff line number Diff line change 1919class TestSAPRfcModule (ModuleTestCase ):
2020
2121 def setUp (self ):
22+ super (TestSAPRfcModule , self ).setUp ()
2223 self .pyrfc_mock = {
2324 'pyrfc' : MagicMock (),
2425 'pyrfc.Connection' : MagicMock ()
2526 }
2627 patcher = patch .dict ('sys.modules' , self .pyrfc_mock )
2728 patcher .start ()
2829 self .addCleanup (patcher .stop )
29- super (TestSAPRfcModule , self ).setUp ()
3030 from ansible_collections .community .sap_libs .plugins .modules import sap_pyrfc
3131 self .module = sap_pyrfc
3232
Original file line number Diff line number Diff line change 1010class TestSAPRfcModule (ModuleTestCase ):
1111
1212 def setUp (self ):
13+ super (TestSAPRfcModule , self ).setUp ()
1314 self .pyrfc_mock = {
1415 'pyrfc' : MagicMock (),
1516 'pyrfc.Connection' : MagicMock ()
1617 }
1718 patcher = patch .dict ('sys.modules' , self .pyrfc_mock )
1819 patcher .start ()
1920 self .addCleanup (patcher .stop )
20- super (TestSAPRfcModule , self ).setUp ()
2121 from ansible_collections .community .sap_libs .plugins .modules import sap_snote
2222 self .module = sap_snote
2323
Original file line number Diff line number Diff line change 1010class TestSAPRfcModule (ModuleTestCase ):
1111
1212 def setUp (self ):
13+ super (TestSAPRfcModule , self ).setUp ()
1314 self .mock_modules = {
1415 'pyrfc' : MagicMock (),
1516 'pyrfc.Connection' : MagicMock (),
@@ -19,7 +20,6 @@ def setUp(self):
1920 patcher = patch .dict ('sys.modules' , self .mock_modules )
2021 patcher .start ()
2122 self .addCleanup (patcher .stop )
22- super (TestSAPRfcModule , self ).setUp ()
2323 from ansible_collections .community .sap_libs .plugins .modules import sap_task_list_execute
2424 self .module = sap_task_list_execute
2525
Original file line number Diff line number Diff line change 1010class TestSAPRfcModule (ModuleTestCase ):
1111
1212 def setUp (self ):
13+ super (TestSAPRfcModule , self ).setUp ()
1314 self .pyrfc_mock = {
1415 'pyrfc' : MagicMock (),
1516 'pyrfc.Connection' : MagicMock ()
1617 }
1718 patcher = patch .dict ('sys.modules' , self .pyrfc_mock )
1819 patcher .start ()
1920 self .addCleanup (patcher .stop )
20- super (TestSAPRfcModule , self ).setUp ()
2121 from ansible_collections .community .sap_libs .plugins .modules import sap_user
2222 self .module = sap_user
2323
You can’t perform that action at this time.
0 commit comments