mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 15:39:43 +00:00
Fix test_def_link tests by adding missing mock to open() call
The mock was setup to only return the mocked data once, but the function is called twice under cfg_yaml.py, and it breaks at __yaml_load as there's no mock anymore.
This commit is contained in:
committed by
deadc0de
parent
f013397c02
commit
c1b9750501
@@ -90,6 +90,7 @@ profiles:
|
||||
'''.format(cfgstring)
|
||||
|
||||
mock_open.side_effect = [
|
||||
unittest.mock.mock_open(read_data=data).return_value,
|
||||
unittest.mock.mock_open(read_data=data).return_value
|
||||
]
|
||||
mock_exists.return_value = True
|
||||
|
||||
Reference in New Issue
Block a user