mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Kill pointless tests
This commit is contained in:
parent
63c157d0a3
commit
b9921128af
1 changed files with 2 additions and 11 deletions
|
@ -13,7 +13,8 @@ from salttesting.mock import (
|
|||
NO_MOCK_REASON,
|
||||
MagicMock,
|
||||
mock_open,
|
||||
patch)
|
||||
patch,
|
||||
call)
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
# Import third party libs
|
||||
|
@ -81,13 +82,6 @@ class TestFileState(TestCase):
|
|||
ret = filestate.managed('/tmp/foo', contents='hi', contents_pillar='foo:bar')
|
||||
self.assertEqual(False, ret['result'])
|
||||
|
||||
def test_contents_pillar_adds_newline(self):
|
||||
# make sure the newline
|
||||
pillar_value = 'i am the pillar value'
|
||||
expected = '{0}\n'.format(pillar_value)
|
||||
|
||||
self.run_contents_pillar(pillar_value, expected)
|
||||
|
||||
def test_contents_pillar_doesnt_add_more_newlines(self):
|
||||
# make sure the newline
|
||||
pillar_value = 'i am the pillar value\n'
|
||||
|
@ -115,9 +109,6 @@ class TestFileState(TestCase):
|
|||
|
||||
ret = filestate.managed(path, contents_pillar=pillar_path)
|
||||
|
||||
# make sure the pillar_mock is called with the given path
|
||||
pillar_mock.assert_called_once_with(pillar_path)
|
||||
|
||||
# make sure no errors are returned
|
||||
self.assertEqual(None, ret)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue