Define __opts__ dict

This commit is contained in:
Alexander Fischer 2019-03-06 16:40:25 +01:00 committed by Ch3LL
parent 64d8451dcb
commit ee3ad08e14
No known key found for this signature in database
GPG Key ID: 132B55A7C13EFA73

View File

@ -38,6 +38,13 @@ class WinFileTestCase(TestCase):
else:
FAKE_PATH = os.sep.join(['path', 'does', 'not', 'exist'])
def setup_loader_modules(self):
self.current_user = salt.utils.win_functions.get_current_user(False)
return {
win_file: {
'__opts__': {
'test': False}}}
def test_issue_43328_stats(self):
'''
Make sure that a CommandExecutionError is raised if the file does NOT