Changeset - ab36d9a31a2d
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 10 years ago 2016-05-06 21:20:56
thomas.de_schampheleire@nokia.com
pytest migration: add args/kwargs to assertRaises replacement

Even though we'll soon get rid of the assertRaises replacement, the tests in
kallithea/tests/other/test_validators.py expect to pass it args and kwargs
so we need to adapt it first.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/__init__.py
Show inline comments
 
@@ -272,6 +272,6 @@ class TestControllerPytest(BaseTestContr
 
        assert first == second
 
    def assertDictEqual(self, first, second, msg=None):
 
        assert first == second
 
    def assertRaises(self, exception, method):
 
    def assertRaises(self, exception, method, *args, **kwargs):
 
        with pytest.raises(exception):
 
            method()
 
            method(*args, **kwargs)
0 comments (0 inline, 0 general)