changeset 7213:01b58775d719

tests: vcs: use new setup_empty_repo method from test_changesets.py Avoid duplication from the base class...
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Fri, 16 Mar 2018 21:33:53 +0100
parents 4077ea3ff4f2
children 22e80164295f
files kallithea/tests/vcs/test_changesets.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/vcs/test_changesets.py	Fri Mar 16 21:32:01 2018 +0100
+++ b/kallithea/tests/vcs/test_changesets.py	Fri Mar 16 21:33:53 2018 +0100
@@ -216,10 +216,7 @@
         assert len(changesets) == 2
 
     def test_get_changesets_on_empty_repo_raises_EmptyRepository_error(self):
-        Backend = self.get_backend()
-        repo_path = get_new_dir(str(time.time()))
-        repo = Backend(repo_path, create=True)
-
+        repo = self.setup_empty_repo(self.backend_class)
         with pytest.raises(EmptyRepositoryError):
             list(repo.get_changesets(start='foobar'))