mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 06:22:48 +01:00
Better mocking for getfullargspec
Seems much more straightforward this way?
This commit is contained in:
parent
a9e1b607c5
commit
cc0979692b
1 changed files with 3 additions and 3 deletions
|
|
@ -321,9 +321,9 @@ class ListenersTest(unittest.TestCase, TestHelper):
|
|||
[d.dummy, d2.dummy])
|
||||
|
||||
@patch('beets.plugins.find_plugins')
|
||||
@patch('beets.plugins.inspect')
|
||||
def test_events_called(self, mock_inspect, mock_find_plugins):
|
||||
mock_inspect.getfullargspec.return_value = Mock(
|
||||
@patch('inspect.getfullargspec')
|
||||
def test_events_called(self, mock_gfa, mock_find_plugins):
|
||||
mock_gfa.return_value = Mock(
|
||||
args=(),
|
||||
varargs='args',
|
||||
varkw='kwargs',
|
||||
|
|
|
|||
Loading…
Reference in a new issue