Changeset - 01b58775d719
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 8 years ago 2018-03-16 21:33:53
thomas.de_schampheleire@nokia.com
tests: vcs: use new setup_empty_repo method from test_changesets.py

Avoid duplication from the base class...
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/test_changesets.py
Show inline comments
 
@@ -216,10 +216,7 @@ class _ChangesetsTestCaseMixin(_BackendT
 
        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'))
 

	
0 comments (0 inline, 0 general)