mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixed test for svn.export
This commit is contained in:
parent
e79f4aa5cc
commit
ebcd3b1c6b
1 changed files with 12 additions and 7 deletions
|
@ -104,13 +104,18 @@ class SvnTestCase(TestCase, LoaderModuleMockMixin):
|
|||
with patch.dict(svn.__opts__, {'test': False}):
|
||||
mock = MagicMock(return_value=True)
|
||||
with patch.dict(svn.__salt__, {'svn.export': mock}):
|
||||
self.assertDictEqual(svn.export("salt",
|
||||
"c://salt"),
|
||||
{'changes': 'salt was Exported'
|
||||
' to c://salt', 'comment': '',
|
||||
'name': 'salt', 'result': True
|
||||
}
|
||||
)
|
||||
self.assertDictEqual(
|
||||
svn.export("salt", "c://salt"),
|
||||
{
|
||||
'changes': {
|
||||
'new': 'salt',
|
||||
'comment': 'salt was Exported to c://salt',
|
||||
},
|
||||
'comment': '',
|
||||
'name': 'salt',
|
||||
'result': True,
|
||||
}
|
||||
)
|
||||
|
||||
def test_dirty(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue