From 2eea8b31e933898bc056f8d24848b0ebd433ee63 Mon Sep 17 00:00:00 2001 From: shreyas Date: Thu, 21 Apr 2016 12:00:12 +0530 Subject: [PATCH] [Fix] Updated test case for the refactored logic --- bench/tests/test_init.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bench/tests/test_init.py b/bench/tests/test_init.py index 4e9ba8ed..9df5b17f 100644 --- a/bench/tests/test_init.py +++ b/bench/tests/test_init.py @@ -119,15 +119,15 @@ class TestBenchInit(unittest.TestCase): home = os.path.abspath(os.path.expanduser('~')) archive_path = os.path.join(home, 'archived_sites') - self.drop_site("test-drop-with-archive-path", archive_path=archive_path) + self.drop_site("test-drop-with-archive-path", archived_sites_path=archived_sites_path) - def drop_site(self, site_name, archive_path=None): + def drop_site(self, site_name, archived_sites_path=None): self.new_site(site_name) drop_site_cmd = ['bench', 'drop-site', site_name] - if archive_path: - drop_site_cmd.extend(['--archive-path', archive_path]) + if archived_sites_path: + drop_site_cmd.extend(['--archived-sites-path', archived_sites_path]) if os.environ.get('TRAVIS'): drop_site_cmd.extend(['--root-password', 'travis']) @@ -138,13 +138,13 @@ class TestBenchInit(unittest.TestCase): except subprocess.CalledProcessError as err: print err.output - if not archive_path: + if not archived_sites_path: archived_sites_path = os.path.join(bench_path, 'archived_sites') self.assertTrue(os.path.exists(archived_sites_path)) self.assertTrue(os.path.exists(os.path.join(archived_sites_path, site_name))) else: - self.assertTrue(os.path.exists(archive_path)) + self.assertTrue(os.path.exists(archived_sites_path)) self.assertTrue(os.path.exists(os.path.join(archive_path, site_name))) def assert_folders(self, bench_name):