mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update TestUtils.py
tests shouldn't be making symlinks to system dirs, also fixes unit test report on OS X.
This commit is contained in:
parent
05b3aaa39b
commit
ef28d62846
1 changed files with 0 additions and 6 deletions
|
@ -15,12 +15,6 @@ class TestUtils(unittest.TestCase):
|
||||||
#####################################
|
#####################################
|
||||||
### varReplace function tests
|
### varReplace function tests
|
||||||
|
|
||||||
def test_unfrackpath(self):
|
|
||||||
os.symlink("/etc", "/tmp/etc")
|
|
||||||
a = ansible.utils.unfrackpath('$HOME/../../tmp/etc/')
|
|
||||||
assert a == '/etc'
|
|
||||||
os.unlink('/tmp/etc')
|
|
||||||
|
|
||||||
def test_varReplace_simple(self):
|
def test_varReplace_simple(self):
|
||||||
template = 'hello $who'
|
template = 'hello $who'
|
||||||
vars = {
|
vars = {
|
||||||
|
|
Loading…
Reference in a new issue