mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix mock_open patch
Forgot to add this when I removed the decorator in my previous commit.
This commit is contained in:
parent
af82835f42
commit
123b8ee1cb
1 changed files with 3 additions and 1 deletions
|
@ -271,7 +271,9 @@ class TLSAddTestCase(TestCase):
|
|||
del source['signature_algorithm']
|
||||
if 'extensions' not in reference:
|
||||
del source['extensions']
|
||||
result = ignore_extensions(tls.cert_info(certp))
|
||||
with patch('salt.utils.fopen',
|
||||
mock_open(read_data=_TLS_TEST_DATA['ca_cert'])):
|
||||
result = ignore_extensions(tls.cert_info(certp))
|
||||
remove_not_in_result(ret, result)
|
||||
self.assertEqual(result, ret)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue