René's URL Explorer Experiment


Title: Allure step placeholder fails when accessing dataclass attribute `data.name` · Issue #896 · allure-framework/allure-python · GitHub

Open Graph Title: Allure step placeholder fails when accessing dataclass attribute `data.name` · Issue #896 · allure-framework/allure-python

X Title: Allure step placeholder fails when accessing dataclass attribute `data.name` · Issue #896 · allure-framework/allure-python

Description: With the usage provided in step_placeholder.rst, I used Allure step placeholders to reference a property on a Python dataclass passed as a function argument. Using data.name in the step title raises an AttributeError during step renderin...

Open Graph Description: With the usage provided in step_placeholder.rst, I used Allure step placeholders to reference a property on a Python dataclass passed as a function argument. Using data.name in the step title raise...

X Description: With the usage provided in step_placeholder.rst, I used Allure step placeholders to reference a property on a Python dataclass passed as a function argument. Using data.name in the step title raise...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allure step placeholder fails when accessing dataclass attribute `data.name`","articleBody":"With the usage provided in [step_placeholder.rst](https://github.com/allure-framework/allure-python/blob/master/allure-pytest/examples/step/step_placeholder.rst), I used Allure step placeholders to reference a property on a Python `dataclass` passed as a function argument. Using `data.name` in the step title raises an `AttributeError` during step rendering.\n\n#### Expected behavior\n\nAllure should resolve `data.name` and display the value of the `name` attribute in the step title like Create opportunity: Auto QA Example\n\n#### Actual behavior\n\nAllure raises an exception before the step executes: `AttributeError: 'str' object has no attribute 'get('name)'`\n\nMWE of dataclass used\n\n```python\n\n@dataclass\nclass OpportunityData:\n    \"\"\"Data class for opportunity test data.\"\"\"\n    \n    name: str\n    expected_revenue: str\n    email: Optional[str] = None\n    phone: Optional[str] = None\n    state: Optional[str] = None\n    street: Optional[str] = None\n    zip_code: Optional[str] = None\n```\n\nFactory function for Opportunity creation\n```python\ndef create_opportunity_data() -\u003e OpportunityData:\n    \"\"\"Factory function to create OpportunityData for tests.\"\"\"\n\n    \n    data = OpportunityData(\n        name=f\"Auto QA {fake.company()}\",\n        expected_revenue=_generate_expected_revenue(),\n        email = fake.email()\n        phone = fake.phone_number()\n        street = fake.street_address()\n        zip_code = fake.zipcode()\n        state=fake.random_element(STATE_OPTIONS),\n    )\n    \n   return data\n```\nTest Opportunity file\n```python\n@allure.title(\"Test opportunity creation with all main fields\")\n@allure.testcase(\"CRM-002\")\n@pytest.mark.regression\ndef test_opportunity_creation_full(opportunity_page: OpportunityPage, app_instance: App) -\u003e None:\n    \n    # ARRANGE\n    data = create_opportunity_data(full=True, opportunity_type=\"CRM Multi-Year\")\n    \n    # ACT\n    opportunity_page.create_opportunity(data)\n    \n    # ASSERT\n    opportunity_page.verify_opportunity_saved(data.name)\n\n```\nOpportunity Page class\n```python\n    @allure.step(\"Create opportunity: {data.name}\")\n    def create_opportunity(self, data: \"OpportunityData\", base_url: str) -\u003e Self:\n        \"\"\"High-level method to create an opportunity with provided data.\"\"\"\n        \n      \n        # Fill main form fields\n        self.fill_opportunity_name(data.name)\n        self.fill_expected_revenue(data.expected_revenue)\n\n```\n\nCall stack\n\n```\napp_instance = \u003csrc.app.App object at 0x7f9f3034f8c0\u003e\n\n    @allure.title(\"Test opportunity creation with minimal fields\")\n    @allure.testcase(\"CRM-001\")\n    @pytest.mark.smoke\n    def test_opportunity_creation_flow(opportunity_page: OpportunityPage, app_instance: App) -\u003e None:\n    \n        # ARRANGE\n        data = create_opportunity_data(opportunity_type=\"Monitoring\")\n    \n        # ACT\n\u003e       opportunity_page.create_opportunity(data, app_instance.base_url)\nE       AttributeError: 'str' object has no attribute 'get('name)'\n```\n\n#### Notes\n\n* `data` is a dataclass instance, not a dict.\n* Attribute access works inside the function body.\n* The error occurs during Allure step title formatting.\n\n\n#### Environment\n\n* Python 3.12\n* allure-pytest==2.15.2\n* pytest==8.4.2\n* pytest-playwright==0.7.2\n* mypy==1.19.0\n* mypy-extensions==1.1.0\n\nDoes allure step placeholders accept only strings?\n","author":{"url":"https://github.com/recluzegeek","@type":"Person","name":"recluzegeek"},"datePublished":"2026-01-07T11:14:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/896/allure-python/issues/896"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e775c379-ec2c-639f-558f-a20c2f53f194
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9844:2056C8:593E65:7C61EE:696E5A8B
html-safe-noncedf7ab32e3c11d66113d6db0615ad98b9903dfb861535797bab375e79ce40fd60
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODQ0OjIwNTZDODo1OTNFNjU6N0M2MUVFOjY5NkU1QThCIiwidmlzaXRvcl9pZCI6IjQ4NzUwMDYyNTE3NTEwNzAzNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb1732048a6f0ae7fe11e0c026946cb23ee857ed3c6057049ec934d88ad063f24
hovercard-subject-tagissue:3788330587
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/896/issue_layout
twitter:imagehttps://opengraph.githubassets.com/413daeabb661a6fa52869a3fb88e025c9d25d22687ddc55016a1ea72ac92298f/allure-framework/allure-python/issues/896
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/413daeabb661a6fa52869a3fb88e025c9d25d22687ddc55016a1ea72ac92298f/allure-framework/allure-python/issues/896
og:image:altWith the usage provided in step_placeholder.rst, I used Allure step placeholders to reference a property on a Python dataclass passed as a function argument. Using data.name in the step title raise...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerecluzegeek
hostnamegithub.com
expected-hostnamegithub.com
Nonef68b42d371252b0f236260d6234f4304a806fe5ac43d59faa21fb59d80df103b
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
release6b74bc8dbcd10b5d69fd9ee9d2cfdc8b35e18a4c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/896#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%2F896
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%2F896
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/896
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/896
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/896
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/896
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/896
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/allure-framework/allure-python/issues/896
Allure step placeholder fails when accessing dataclass attribute data.namehttps://patch-diff.githubusercontent.com/allure-framework/allure-python/issues/896#top
https://github.com/recluzegeek
https://github.com/recluzegeek
recluzegeekhttps://github.com/recluzegeek
on Jan 7, 2026https://github.com/allure-framework/allure-python/issues/896#issue-3788330587
step_placeholder.rsthttps://github.com/allure-framework/allure-python/blob/master/allure-pytest/examples/step/step_placeholder.rst
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.