From 7552f522a8938e7472e105a2efc73c0264a80f7f Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 16 Sep 2020 11:20:53 +0200 Subject: testCollectionCreation._do_nothing is a private helper method --- tests/test_collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_collection.py') 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': [ -- cgit v1.2.3