Skip to main content

Allure Python Testing Utilities

Release Status Downloads

The package contains pyhamcrest matchers to assert the Allure results. They come in handy when you need to test an Allure adapter.

Allure Report logo


The matchers library

Here is the list of available matchers. Refer to https://github.com/allure-framework/allure-python/tree/master/tests for usage examples.

Module Matcher Check
container has_container The report contains a container that matches all the provided matchers.
container has_same_container The report contains a container that has all the specified tests as its children
container has_before The container has a before fixture with the specified name that matches all the provided matchers
container has_after The container has an after fixture with the specified name that matches all the provided matchers
content csv_equivalent The string (typically, an attachment's content) contains a CSV document that is equvalent to the provided one
label has_label The test contains a label with the specified name and (optionaly) the value
label has_severity The test has the specified severity label
label has_epic The test has the specified epic label
label has_feature The test has the specified feature label
label has_story The test has the specified story label
label has_tag The test has the specified tag label
label has_package The test has the specified package label
label has_suite The test has the specified suite label
label has_parent_suite The test has the specified parentSuite label
label has_sub_suite The test has the specified subSuite label
report has_test_case The report contains a test whose fullName ends, or name starts with the specified name. Additionally, the test must match all the provided matchers
report has_only_testcases Each test of the report matches at least one of the provided matchers
report has_only_n_test_cases Same as has_test_case but also checks if the number of matched tests is equal to the expected one
result has_title The test has an expected name
result has_description The test has a description that matches all the provided matchers
result has_description_html The test has a descriptionHtml that matches all the provided matchers
result has_step The test or step has a step with the specified name that matches all the provided matchers
result has_parameter The test or step has a parameter with the specified name whose value matches the provided matchers
result doesnt_have_parameter The test or step doesn't have a parameter with the specified name
result has_link The test has a link with the expected url, type (if provided) and name (if provided)
result has_issue_link The test has an issue link with the expected url and name (if provided)
result has_test_case_link The test has an issue link with the expected url and name (if provided)
result has_attachment The test or step has an attachment with the expected name and type.
result has_attachment_with_content The test or step has an attachment with the expected name and type. In addition, the content must match the provided matcher.
result with_id The test or container has the expected uuid
result with_status The test or step has the expected status
result has_status_details The status details of the test or step matches all the provided matchers
result with_message_contains The status details' message contains the provided text
result with_trace_contains The status details' trace contains the provided text
result with_excluded The parameter is excluded from the historyId calculation
result with_mode The parameter has the specified mode
result has_history_id The test has historyId

Metadata

Release files for allure-python-commons-test 2.16.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for allure-python-commons-test 2.16.1
File Size Uploaded
allure_python_commons_test-2.16.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for allure-python-commons-test 2.16.1
File Interpreter ABI Platform
allure_python_commons_test-2.16.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / allure_python_commons_test-2.16.1.tar.gz

Download URL allure_python_commons_test-2.16.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
222177d932fa205eaa697a124ce9c6617c8f49ba5ad4639a02b160507872c9bf
BLAKE2b-256 checksum
How to use checksums
6e75118b05c9e2ec186e3732a0331f9bfa55606928165caa5c05b36ce76e64c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / allure_python_commons_test-2.16.1-py3-none-any.whl

Download URL allure_python_commons_test-2.16.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
061c0fa5c8b6127a1739365359ee144d3425db37153c5cfba70ce1598c8c1a3a
BLAKE2b-256 checksum
How to use checksums
912de1e732be451680574c1c65573d2288d7aa1dc3c0fe5ec3d50e3dc3b99c47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

2.16.2

2 release files

This release

2.16.1 This release

2 release files

2.16.0

2 release files

2.15.3

2 release files

2.15.2

2 release files

2.15.1

2 release files

2.15.0

2 release files

2.14.1

2 release files

2.13.4

2 release files

2.13.3

2 release files

2.13.2

2 release files

2.13.1

2 release files

2.12.0

2 release files

2.11.1

2 release files

2.10.0

2 release files

2.9.45

2 release files

2.9.44

2 release files

2.9.42

2 release files

2.9.41

2 release files

2.8.40

2 release files

2.8.34

2 release files

2.8.32

2 release files

2.8.31

2 release files

2.8.30

2 release files

2.8.29

2 release files

2.8.22

2 release files

2.8.21

2 release files

2.8.20

2 release files

2.8.19

2 release files

2.8.18

2 release files

2.8.17

2 release files

2.8.16

2 release files

2.8.15

2 release files

2.8.14

2 release files

2.8.12

2 release files

2.8.11

2 release files

2.8.10

2 release files

2.8.9

2 release files

2.8.7

2 release files

2.8.6

2 release files

2.8.5

2 release files

2.8.4

2 release files

2.8.3

2 release files

2.8.2

2 release files

2.8.1

2 release files

2.8.0

2 release files

2.7.1

2 release files

2.7.0

2 release files

2.6.5

2 release files

2.6.4

2 release files

2.6.3

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.5

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page