Ejemplo n.º 1
0
    def test_raises_exception_for_undefined_test(self):
        with pytest.raises(ConfigurationError):
            get_active_tests({'activeTests': 'undefined_test'})

        with pytest.raises(ConfigurationError):
            get_active_tests({'activeTests': '  undefined_test     '})

        with pytest.raises(ConfigurationError):
            get_active_tests({'activeTests': 'undef_test:undef_test2:undef_test3'})
Ejemplo n.º 2
0
    def test_raises_exception_for_undefined_test(self):
        with pytest.raises(ConfigurationError):
            get_active_tests({'activeTests': 'undefined_test'})

        with pytest.raises(ConfigurationError):
            get_active_tests({'activeTests': '  undefined_test     '})

        with pytest.raises(ConfigurationError):
            get_active_tests({'activeTests': 'undef_test:undef_test2:undef_test3'})