How to use the allure-python-commons-test.src.report.ContainsExactly function in allure-python-commons-test

To help you get started, we’ve selected a few allure-python-commons-test examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github allure-framework / allure-python / allure-python-commons-test / src / report.py View on Github external
def has_only_n_test_cases(name, num, *matchers):
    return has_property('test_cases',
                        ContainsExactly(num,
                                        all_of(
                                            any_of(
                                                has_entry('fullName', ends_with(name)),
                                                has_entry('name', ends_with(name))
                                            ),
                                            *matchers
                                        )

allure-python-commons-test

A collection of PyHamcrest matchers to test Allure adapters for Python test frameworks

Apache-2.0
Latest version published 9 months ago

Package Health Score

74 / 100
Full package analysis

Similar packages