From 63dd2464548c6647de83f827a772dd8a3c845949 Mon Sep 17 00:00:00 2001 From: Christian Digiorno Date: Tue, 28 May 2019 11:36:59 -0300 Subject: [PATCH] Fix test --- tests/configurations/security/tests_ckanext_security.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/configurations/security/tests_ckanext_security.py b/tests/configurations/security/tests_ckanext_security.py index 7624800..04b2835 100644 --- a/tests/configurations/security/tests_ckanext_security.py +++ b/tests/configurations/security/tests_ckanext_security.py @@ -15,13 +15,13 @@ def test_successful_plugin_enablement_and_disablement(self): # Enable subprocess.check_call( "docker exec -it andino {0}./{1}".format(security_path, enablement_script), shell=True) - cmd = "grep 'ckan.site_url = https://localhost' /etc/ckan/default/production.ini" - search_result = subprocess.check_output("docker exec -it andino {}".format(cmd)).strip() + cmd = "grep '## ckanext-security' /etc/ckan/default/production.ini" + search_result = subprocess.check_output("docker exec -it andino {}".format(cmd), shell=True).strip() nt.assert_equal("## ckanext-security", search_result) # Disable subprocess.check_call( "docker exec -it andino {0}./{1}".format(security_path, disablement_script), shell=True) cmd = "{} || true".format(cmd) - search_result = subprocess.check_output("docker exec -it andino {}".format(cmd)).strip() + search_result = subprocess.check_output("docker exec -it andino {}".format(cmd), shell=True).strip() nt.assert_equal("", search_result)