Skip to content

Conversation

@whyscream
Copy link
Contributor

Spin-off from #91: The referenced named_model usage example doesn't work, it has several issues.

  • Arguments for named_model args are in the wrong order, which was a simple fix when checking the type annotations.
  • An exception is raised for a name collision: AssertionError: Naming collision for <JSONPayload for <class 'pytest_factoryboy.fixture.JSONPayload'>>
  • The test asserted an object property in stead of a dict value.

- Arguments for `named_model` args are in the wrong order, which was a simple fix when checking the type annotations.
- An exception is raised for a name collision: `AssertionError: Naming collision for <JSONPayload for <class 'pytest_factoryboy.fixture.JSONPayload'>>`
- The test asserted an object property in stead of a dict value.
@youtux
Copy link
Contributor

youtux commented Jan 5, 2026

thank you!

@youtux youtux enabled auto-merge January 5, 2026 16:33
@youtux youtux merged commit d1750dd into pytest-dev:master Jan 5, 2026
8 checks passed
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@564a008). Learn more about missing BASE report.
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #259   +/-   ##
=========================================
  Coverage          ?   97.85%           
=========================================
  Files             ?       16           
  Lines             ?      886           
  Branches          ?       54           
=========================================
  Hits              ?      867           
  Misses            ?        8           
  Partials          ?       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants