diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-03-04 18:20:16 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-03-04 18:20:16 +0100 |
commit | d4d4120ed6362e15f55d83525515c959713ff4ba (patch) | |
tree | 924766c30372e91dfe90dcab949412fa71c918b0 /tests | |
parent | 381ce71902e176f8f0d76f8330e74c871cbd46b3 (diff) |
Save in the settings whether git support should be enabled
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_collection.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py index a197237..265db09 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -203,9 +203,12 @@ class testCollectionCreation(unittest.TestCase): self.assertTrue(os.path.isdir(os.path.join(tmpdir, '.lesana'))) self.assertTrue(os.path.isfile(os.path.join(tmpdir, 'settings.yaml'))) self.assertTrue(os.path.isfile(os.path.join(tmpdir, '.gitignore'))) + created = lesana.Collection(tmpdir) + self.assertTrue(created.settings['git']) shutil.rmtree(tmpdir) def do_nothing(*args, **kwargs): + # A function that does nothing instead of editing a file pass def test_init_edit_file(self): @@ -233,6 +236,8 @@ class testCollectionCreation(unittest.TestCase): self.assertTrue(os.path.isdir(os.path.join(tmpdir, '.lesana'))) self.assertTrue(os.path.isfile(os.path.join(tmpdir, 'settings.yaml'))) self.assertFalse(os.path.isfile(os.path.join(tmpdir, '.gitignore'))) + created = lesana.Collection(tmpdir) + self.assertFalse(created.settings['git']) shutil.rmtree(tmpdir) def test_deletion(self): |