René's URL Explorer Experiment


Title: Attribute error in @allure.title when using @pytest.fixture(params=[...] · Issue #873 · allure-framework/allure-python · GitHub

Open Graph Title: Attribute error in @allure.title when using @pytest.fixture(params=[...] · Issue #873 · allure-framework/allure-python

X Title: Attribute error in @allure.title when using @pytest.fixture(params=[...] · Issue #873 · allure-framework/allure-python

Description: @allure.title decorator doesn't correctly formats a title string when using a parametrized fixture and having that fixture skip a test or raise an error: import pytest import allure class TestClass: @pytest.fixture(params=[1, 2]) # <-- c...

Open Graph Description: @allure.title decorator doesn't correctly formats a title string when using a parametrized fixture and having that fixture skip a test or raise an error: import pytest import allure class TestClass...

X Description: @allure.title decorator doesn't correctly formats a title string when using a parametrized fixture and having that fixture skip a test or raise an error: import pytest import allure class TestC...

Opengraph URL: https://github.com/allure-framework/allure-python/issues/873

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Attribute error in @allure.title when using @pytest.fixture(params=[...]","articleBody":"@allure.title decorator doesn't correctly formats a title string when using a parametrized fixture and having that fixture skip a test or raise an error:\n\n```\nimport pytest\nimport allure\n\n\nclass TestClass:\n    @pytest.fixture(params=[1, 2])  # \u003c-- causes AttributeError: 'int' object has no attribute 'one'\n    # @pytest.fixture()\n    def params(self):\n        # will cause AttributeError in allure.title\n        # if this fixture is skipping tests\n        pytest.skip('skip')\n        \n        # or raising an error\n        raise ValueError('aa')\n\n        class _Params:\n            \"\"\"some params every test needs\"\"\"\n            one = 1\n            two = 2\n\n        # but no error if it returns a value\n        return _Params()\n\n    @allure.title('should display \"1\" {params.one}')\n    def test_func(self, params):  # \u003c-- causes AttributeError: 'int' object has no attribute 'one'\n        assert params.one == 1\n```\n```\nself = \u003callure_commons.utils.SafeFormatter object at 0x7f1851ab19d0\u003e, field_name = 'params.one', args = (), kwargs = {'param_id': '2', 'params': 2}\n\n    def get_field(self, field_name, args, kwargs):\n        first, rest = _string.formatter_field_name_split(field_name)\n    \n        obj = self.get_value(first, args, kwargs)\n    \n        # loop through the rest of the field_name, doing\n        #  getattr or getitem as needed\n        for is_attr, i in rest:\n            if is_attr:\n\u003e               obj = getattr(obj, i)\n                      ^^^^^^^^^^^^^^^\nE               AttributeError: 'int' object has no attribute 'one'\n\n/usr/lib64/python3.12/string.py:305: AttributeError\n=================================================================== short test summary info ====================================================================\nERROR p.py::TestClass::test_func[1] - AttributeError: 'int' object has no attribute 'one'\nERROR p.py::TestClass::test_func[2] - AttributeError: 'int' object has no attribute 'one'\n====================================================================== 2 errors in 0.14s =======================================================================\n```\n\nThis is shadowing the real error or skip in the fixture and is similar to #670\n\n```\nallure-pytest==2.15.0\npytest==8.4.1\n```","author":{"url":"https://github.com/tsvtt","@type":"Person","name":"tsvtt"},"datePublished":"2025-08-06T13:16:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/873/allure-python/issues/873"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f7a738be-f9b1-83f8-8c4d-df57f4ef1c33
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC890:3B6C5C:4BF454:674DD3:696E755E
html-safe-nonce63a3884835136ceb4b72dddf0b8b6541470525b97f7601fda16da9183134bd98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODkwOjNCNkM1Qzo0QkY0NTQ6Njc0REQzOjY5NkU3NTVFIiwidmlzaXRvcl9pZCI6IjU0Nzg2NDExMDc1MTc0NzAwNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc8d0c6f7e9fa050b8e1f87a6c5e0865c55ae02c9931012e93101be5afc8f1714
hovercard-subject-tagissue:3296680653
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-python/873/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f9d355b5a7dbe1d30385bcc4806829836098e260393648232c5faa93824f0d84/allure-framework/allure-python/issues/873
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f9d355b5a7dbe1d30385bcc4806829836098e260393648232c5faa93824f0d84/allure-framework/allure-python/issues/873
og:image:alt@allure.title decorator doesn't correctly formats a title string when using a parametrized fixture and having that fixture skip a test or raise an error: import pytest import allure class TestClass...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametsvtt
hostnamegithub.com
expected-hostnamegithub.com
None01185010a96388a2a8cd8bd7f5824fdf090522b219f9aecf8c7ff1857aeb489b
turbo-cache-controlno-preview
go-importgithub.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git
octolytics-dimension-user_id5879127
octolytics-dimension-user_loginallure-framework
octolytics-dimension-repository_id79346720
octolytics-dimension-repository_nwoallure-framework/allure-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id79346720
octolytics-dimension-repository_network_root_nwoallure-framework/allure-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release673a80c1bce2a1e6a48b530ce2b72bf8fd253386
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/873#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallure-framework%2Fallure-python%2Fissues%2F873
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallure-framework%2Fallure-python%2Fissues%2F873
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=allure-framework%2Fallure-python
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/873
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/873
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/873
allure-framework https://patch-diff.githubusercontent.com/allure-framework
allure-pythonhttps://patch-diff.githubusercontent.com/allure-framework/allure-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python
Fork 256 https://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python
Star 789 https://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python
Code https://patch-diff.githubusercontent.com/allure-framework/allure-python
Issues 95 https://patch-diff.githubusercontent.com/allure-framework/allure-python/issues
Pull requests 20 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulls
Actions https://patch-diff.githubusercontent.com/allure-framework/allure-python/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/allure-framework/allure-python/security
Please reload this pagehttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/873
Insights https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulse
Code https://patch-diff.githubusercontent.com/allure-framework/allure-python
Issues https://patch-diff.githubusercontent.com/allure-framework/allure-python/issues
Pull requests https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulls
Actions https://patch-diff.githubusercontent.com/allure-framework/allure-python/actions
Security https://patch-diff.githubusercontent.com/allure-framework/allure-python/security
Insights https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/allure-framework/allure-python/issues/873
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/allure-framework/allure-python/issues/873
Attribute error in @allure.title when using @pytest.fixture(params=[...]https://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/873#top
theme:pytesthttps://github.com/allure-framework/allure-python/issues?q=state%3Aopen%20label%3A%22theme%3Apytest%22
https://github.com/tsvtt
https://github.com/tsvtt
tsvtthttps://github.com/tsvtt
on Aug 6, 2025https://github.com/allure-framework/allure-python/issues/873#issue-3296680653
#670https://github.com/allure-framework/allure-python/issues/670
theme:pytesthttps://github.com/allure-framework/allure-python/issues?q=state%3Aopen%20label%3A%22theme%3Apytest%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.