diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2020-09-16 11:20:53 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2020-09-16 11:20:53 +0200 |
commit | 7552f522a8938e7472e105a2efc73c0264a80f7f (patch) | |
tree | 0e867f6c77d18e39bbaa7e0268acd4d257628ea9 /tests/test_collection.py | |
parent | 07f6601a58c5bf7c30d132831367ab44c60b3619 (diff) |
testCollectionCreation._do_nothing is a private helper method
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r-- | tests/test_collection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py index eb57fb0..0d300d2 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -387,13 +387,13 @@ class testCollectionCreation(unittest.TestCase): self.assertTrue(created.settings['git']) shutil.rmtree(tmpdir) - def do_nothing(*args, **kwargs): + def _do_nothing(*args, **kwargs): # A function that does nothing instead of editing a file pass def test_init_edit_file(self): tmpdir = tempfile.mkdtemp() - collection = lesana.Collection.init(tmpdir, edit_file=self.do_nothing) + collection = lesana.Collection.init(tmpdir, edit_file=self._do_nothing) self.assertIsInstance(collection, lesana.Collection) self.assertTrue(os.path.isdir(os.path.join(tmpdir, '.git'))) self.assertTrue(os.path.isdir(os.path.join(tmpdir, '.lesana'))) @@ -505,7 +505,7 @@ class testCollectionCreation(unittest.TestCase): tmpdir = tempfile.mkdtemp() collection = lesana.Collection.init( tmpdir, - edit_file=self.do_nothing, + edit_file=self._do_nothing, settings={ 'name': 'A different name', 'fields': [ |