コード例 #1
0
def test_not_decorated_sub_class_decorated_method(executed_docstring_path):
    assert_that(executed_docstring_path.allure_report,
                has_test_case("TestNotDecoratedSubClass#test_decorated_method",
                              all_of(has_severity("critical"),
                                     is_not(has_severity("trivial"))
                                     )
                              )
                )
コード例 #2
0
def test_severity(executed_docstring_path):
    """ ./examples/label/severity/severity.rst """

    assert_that(executed_docstring_path.allure_report,
                has_test_case(
                    "test_severity",
                    has_severity("minor"),
                ))
コード例 #3
0
def test_not_decorated_function(executed_docstring_path):
    assert_that(
        executed_docstring_path.allure_report,
        has_test_case("test_not_decorated_function", has_severity("trivial")))
コード例 #4
0
def test_method_of_decorated_class(executed_docstring_path):
    assert_that(
        executed_docstring_path.allure_report,
        has_test_case("test_method_of_decorated_class",
                      has_severity("normal")))
コード例 #5
0
def test_decorated_class_not_decorated_method(executed_docstring_path):
    assert_that(executed_docstring_path.allure_report,
                has_test_case("TestDecoratedClass#test_not_decorated_method",
                              has_severity("trivial")
                              )
                )
コード例 #6
0
def test_decorated_class_not_decorated_method(executed_docstring_path):
    assert_that(
        executed_docstring_path.allure_report,
        has_test_case("TestDecoratedClass#test_not_decorated_method",
                      has_severity("trivial")))
コード例 #7
0
def test_not_decorated_sub_class_decorated_method(executed_docstring_path):
    assert_that(
        executed_docstring_path.allure_report,
        has_test_case(
            "TestNotDecoratedSubClass#test_decorated_method",
            all_of(has_severity("critical"), is_not(has_severity("trivial")))))