feat: complete modular plugin refactor with 100% E2E coverage for interactions
This commit is contained in:
15
test_mock.py
Normal file
15
test_mock.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from unittest.mock import patch
|
||||
|
||||
|
||||
class A:
|
||||
def method(self, arg):
|
||||
pass
|
||||
|
||||
|
||||
def dummy(self, arg):
|
||||
print("DUMMY CALLED", arg)
|
||||
|
||||
|
||||
with patch("__main__.A.method") as mock_method:
|
||||
mock_method.side_effect = dummy
|
||||
A().method("hello")
|
||||
Reference in New Issue
Block a user