[PATCH] [Ginger] Fix mocking of test_get_list_of_audit_conf

0 views
Skip to first unread message

Lucio Correia

unread,
Mar 1, 2017, 3:30:35 PM3/1/17
to ginger-dev, Daniel Barboza
Signed-off-by: Lucio Correia <luci...@linux.vnet.ibm.com>
---
tests/test_auditconf.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_auditconf.py b/tests/test_auditconf.py
index 25efd19..c458a9e 100644
--- a/tests/test_auditconf.py
+++ b/tests/test_auditconf.py
@@ -1,7 +1,7 @@
#
# Project Ginger
#
-# Copyright IBM Corp, 2016
+# Copyright IBM Corp, 2016-2017
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -54,7 +54,7 @@ class ConfTests(unittest.TestCase):
'log_file = /var/log/audit/audit.log\n' \
'distribute_network = no\n'
open_mock = mock.mock_open(read_data=data)
- with mock.patch('wok.plugins.ginger.model.utils.open',
+ with mock.patch('wok.plugins.ginger.model.conf.open',
open_mock, create=True):
confmodel = ConfModel()
confmodel.get_auditd_conf()
--
2.7.4

Daniel Henrique Barboza

unread,
Mar 2, 2017, 2:03:08 PM3/2/17
to ginger-...@googlegroups.com
Applied. Thanks!
Reply all
Reply to author
Forward
0 new messages