From ba6981811e863e9929db87533a88b8ead52f9369 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 13 Nov 2016 01:14:09 +0000 Subject: Update `config_dir` function. Now creates the config directory if it is not already created. * gd_diff.py (config_dir): Update function. * tests/test_gd_diff.py (test_config_dir): Update test. (test_configured_p_yes): Update test. --- tests/test_gd_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_gd_diff.py') diff --git a/tests/test_gd_diff.py b/tests/test_gd_diff.py index e59db1a..ff092a2 100644 --- a/tests/test_gd_diff.py +++ b/tests/test_gd_diff.py @@ -234,6 +234,7 @@ class TestGdDiff(object): c_dir = config_dir() assert_equal(c_dir, os.path.join(self.test_home, '.config', 'gns-deb-diff')) + assert_equal(os.path.isdir(c_dir), True) def test_config_file(self): @@ -263,7 +264,6 @@ class TestGdDiff(object): c_path = config_dir() c_file = config_file() - os.makedirs(c_path) open(c_file, 'w').close() configured = configured_p() -- cgit v1.2.3