Changeset - 8a1caf0f2592
[Not reviewed]
default
0 3 0
Thomas De Schampheleire - 8 years ago 2018-03-16 22:08:46
thomas.de_schampheleire@nokia.com
Grafted from: b268a91367c6
tests: vcs: recreate_repo_per_test is really optional

While the documentation says this attribute is required, most tests do not
set it when the default value is fine. Follow-through that convention and
update the documentation.
3 files changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/base.py
Show inline comments
 
@@ -18,7 +18,7 @@ class _BackendTestMixin(object):
 
    This is a backend independent test case class which should be created
 
    with ``type`` method.
 

	
 
    It is required to set following attributes at subclass:
 
    It is possible to set following attributes at subclass:
 

	
 
    - ``backend_alias``: alias of used backend (see ``vcs.BACKENDS``)
 
    - ``recreate_repo_per_test``: If set to ``False``, repo would NOT be created
kallithea/tests/vcs/test_changesets.py
Show inline comments
 
@@ -53,7 +53,6 @@ class TestBaseChangeset(object):
 

	
 

	
 
class _ChangesetsWithCommitsTestCaseixin(_BackendTestMixin):
 
    recreate_repo_per_test = True
 

	
 
    @classmethod
 
    def _get_commits(cls):
kallithea/tests/vcs/test_inmemchangesets.py
Show inline comments
 
@@ -25,8 +25,6 @@ from kallithea.tests.vcs.base import _Ba
 

	
 
class InMemoryChangesetTestMixin(_BackendTestMixin):
 

	
 
    recreate_repo_per_test = True
 

	
 
    @classmethod
 
    def _get_commits(cls):
 
        # Note: this is slightly different than the regular _get_commits methods
0 comments (0 inline, 0 general)