mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #24181 from jtand/file_test
Fixed error where file was evaluated as a symlink in test_absent
This commit is contained in:
commit
2303dec0e9
1 changed files with 2 additions and 2 deletions
|
@ -252,12 +252,12 @@ class FileTestCase(TestCase):
|
|||
group=group), ret)
|
||||
|
||||
# 'absent' function tests: 1
|
||||
|
||||
@patch.object(os.path, 'islink', MagicMock(return_value=False))
|
||||
def test_absent(self):
|
||||
'''
|
||||
Test to make sure that the named file or directory is absent.
|
||||
'''
|
||||
name = '/etc/grub.conf'
|
||||
name = '/fake/file.conf'
|
||||
|
||||
ret = {'name': name,
|
||||
'result': False,
|
||||
|
|
Loading…
Add table
Reference in a new issue