Title: fixtures do not record dependencies on other fixtures · Issue #929 · allure-framework/allure-python · GitHub
Open Graph Title: fixtures do not record dependencies on other fixtures · Issue #929 · allure-framework/allure-python
X Title: fixtures do not record dependencies on other fixtures · Issue #929 · allure-framework/allure-python
Description: Example: import pytest import allure def func(n): return n**2 @pytest.fixture() def input_data(): with allure.step("Prepare input data"): data = 5 return data @pytest.fixture() def compute_job(input_data): with allure.step("Compute resul...
Open Graph Description: Example: import pytest import allure def func(n): return n**2 @pytest.fixture() def input_data(): with allure.step("Prepare input data"): data = 5 return data @pytest.fixture() def compute_job(inpu...
X Description: Example: import pytest import allure def func(n): return n**2 @pytest.fixture() def input_data(): with allure.step("Prepare input data"): data = 5 return data @pytest.fixture() def comput...
Opengraph URL: https://github.com/allure-framework/allure-python/issues/929
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fixtures do not record dependencies on other fixtures","articleBody":"Example:\n\n```python\nimport pytest\nimport allure\n\n\ndef func(n):\n return n**2\n\n\n@pytest.fixture()\ndef input_data():\n with allure.step(\"Prepare input data\"):\n data = 5\n\n return data\n\n\n@pytest.fixture()\ndef compute_job(input_data):\n\n with allure.step(\"Compute result\"):\n result = func(input_data)\n\n return result\n\n\ndef test(compute_job):\n\n with allure.step(\"Verify result\"):\n assert compute_job == 25\n```\n\nIn this case, allure output json files contain no information that allows to deduce that the `compute_job` fixture depends on the `input_data` fixture.\n\nSince they are fast, time ordering is not possible in most cases, since times are only recorded as integer seconds.\n\nThe allure report then shows the two fixtures in the wrong order:\n\n\u003cimg width=\"949\" height=\"657\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f77a667a-9232-4409-9ea2-3e75900a72a4\" />\n\n### Output json files:\n\u003cdetails>\n\nallure/404698a7-6d47-46ee-951e-f1370a8ae247-container.json\n```json\n{\n \"uuid\": \"a00b000b-e3bf-4599-b1fe-f99a4d9265fb\",\n \"children\": [\n \"cb8afcb4-86c9-4ec5-b7c1-def3c168afde\"\n ],\n \"befores\": [\n {\n \"name\": \"compute_job\",\n \"status\": \"passed\",\n \"steps\": [\n {\n \"name\": \"Compute result\",\n \"status\": \"passed\",\n \"start\": 1791292365354,\n \"stop\": 1791292365354\n }\n ],\n \"start\": 1791292365354,\n \"stop\": 1791292365354\n }\n ],\n \"afters\": [\n {\n \"name\": \"compute_job::\u003clambda>\",\n \"start\": 1791292365355\n }\n ],\n \"start\": 1791292365354,\n \"stop\": 1791292365355\n}\n```\n\nallure/b068721b-3ae1-4959-9376-e840e763dbee-container.json\n```json\n{\n \"uuid\": \"76f7b786-56ff-4b9b-9931-98c632f44c92\",\n \"children\": [\n \"cb8afcb4-86c9-4ec5-b7c1-def3c168afde\"\n ],\n \"befores\": [\n {\n \"name\": \"input_data\",\n \"status\": \"passed\",\n \"steps\": [\n {\n \"name\": \"Prepare input data\",\n \"status\": \"passed\",\n \"start\": 1791292365354,\n \"stop\": 1791292365354\n }\n ],\n \"start\": 1791292365354,\n \"stop\": 1791292365354\n }\n ],\n \"afters\": [\n {\n \"name\": \"input_data::\u003clambda>\",\n \"start\": 1791292365355\n }\n ],\n \"start\": 1791292365354,\n \"stop\": 1791292365355\n}\n```\n\nallure/a16a30e1-80d0-4a0e-8dda-54c1cbbb5157-result.json\n```json\n{\n \"name\": \"test\",\n \"status\": \"passed\",\n \"steps\": [\n {\n \"name\": \"Verify result\",\n \"status\": \"passed\",\n \"start\": 1791292365355,\n \"stop\": 1791292365355\n }\n ],\n \"start\": 1791292365355,\n \"stop\": 1791292365355,\n \"uuid\": \"cb8afcb4-86c9-4ec5-b7c1-def3c168afde\",\n \"historyId\": \"761acda85279d873545739563f5f4cb2\",\n \"testCaseId\": \"761acda85279d873545739563f5f4cb2\",\n \"fullName\": \"test_example#test\",\n \"labels\": [\n {\n \"name\": \"suite\",\n \"value\": \"test_example\"\n },\n {\n \"name\": \"host\",\n \"value\": \"max-desktop\"\n },\n {\n \"name\": \"thread\",\n \"value\": \"980504-MainThread\"\n },\n {\n \"name\": \"framework\",\n \"value\": \"pytest\"\n },\n {\n \"name\": \"language\",\n \"value\": \"cpython3\"\n },\n {\n \"name\": \"package\",\n \"value\": \"test_example\"\n }\n ],\n \"titlePath\": [\n \"test_example.py\"\n ]\n}\n```\n\u003c/details>","author":{"url":"https://github.com/maxnoe","@type":"Person","name":"maxnoe"},"datePublished":"2026-10-06T13:24:38Z","url":"https://github.com/allure-framework/allure-python/issues/929"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9e9c110c-2ffd-64ce-ab5c-743aa3fd634e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB08:BB03C:8FE78:C9AA9:6AFD4A70 |
| html-safe-nonce | 9bb9a6e670b6248e46d0d4566670abc08691c945266df873be0ad98cbdb5738b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjA4OkJCMDNDOjhGRTc4OkM5QUE5OjZBRkQ0QTcwIiwidmlzaXRvcl9pZCI6IjQxOTE5MjgxOTMzOTA1NjE5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a6180b3616be7dbbbe640ea5013641343d88edad4353158421b8189284e6055e |
| hovercard-subject-tag | issue:5729174340 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-python/929/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aaacb21d8b87fda5d066ce6d063fc25279f253c40abb6f922bb34d8a11eea7df/allure-framework/allure-python/issues/929 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aaacb21d8b87fda5d066ce6d063fc25279f253c40abb6f922bb34d8a11eea7df/allure-framework/allure-python/issues/929 |
| og:image:alt | Example: import pytest import allure def func(n): return n**2 @pytest.fixture() def input_data(): with allure.step("Prepare input data"): data = 5 return data @pytest.fixture() def compute_job(inpu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxnoe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 79346720 |
| octolytics-dimension-repository_nwo | allure-framework/allure-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79346720 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width