Changeset - d63018164a30
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2018-09-01 16:14:30
mads@kiilerich.com
tests: workaround for pytest 3.7.1 breaking autouse of classmethods

See https://github.com/pytest-dev/pytest/issues/3778 .
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/base.py
Show inline comments
 
@@ -52,13 +52,13 @@ class _BackendTestMixin(object):
 
        ]
 
        return commits
 

	
 
    @classmethod
 
    # Note: cannot use classmethod fixtures with pytest 3.7.1+
 
    @pytest.fixture(autouse=True,
 
                    scope='class')
 
    def _configure_backend(cls, request):
 
        Backend = vcs.get_backend(cls.backend_alias)
 
        cls.backend_class = Backend
 
        cls.setup_repo(Backend)
 
    def _configure_backend(self, request):
 
        Backend = vcs.get_backend(self.backend_alias)
 
        type(self).backend_class = Backend
 
        type(self).setup_repo(Backend)
 

	
 
    @classmethod
 
    def setup_empty_repo(cls, backend):
0 comments (0 inline, 0 general)