From 2c8bed26dd8b5f31f4970b5c61d756d239d4a475 Mon Sep 17 00:00:00 2001 From: shreyas Date: Thu, 21 Apr 2016 14:18:44 +0530 Subject: [PATCH] [Fix] Fixed drop site test case --- bench/tests/test_init.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bench/tests/test_init.py b/bench/tests/test_init.py index 9df5b17f..e84b80b4 100644 --- a/bench/tests/test_init.py +++ b/bench/tests/test_init.py @@ -57,11 +57,10 @@ class TestBenchInit(unittest.TestCase): }) def test_new_site(self): + self.test_init() self.new_site("test-site-1.dev") def new_site(self, site_name): - self.test_init() - new_site_cmd = ["bench", "new-site", site_name, "--admin-password", "admin"] # set in travis @@ -117,7 +116,7 @@ class TestBenchInit(unittest.TestCase): # Check with archive_path given to drop-site command home = os.path.abspath(os.path.expanduser('~')) - archive_path = os.path.join(home, 'archived_sites') + archived_sites_path = os.path.join(home, 'archived_sites') self.drop_site("test-drop-with-archive-path", archived_sites_path=archived_sites_path)