diff options
author | rsiddharth <s@ricketyspace.net> | 2016-11-13 01:14:09 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2016-11-13 01:14:09 +0000 |
commit | ba6981811e863e9929db87533a88b8ead52f9369 (patch) | |
tree | cd638bae40e8b6b4a1490f1463c598bc7143f204 /tests | |
parent | 61a47f6da59efc6369edb6c8562f663bc4c0333d (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gd_diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |