Skip to content

Rename TestIdFixture to IdFixture and add int_id property#3047

Merged
jonathangreen merged 1 commit intomainfrom
chore/rename-test-id-fixture
Feb 13, 2026
Merged

Rename TestIdFixture to IdFixture and add int_id property#3047
jonathangreen merged 1 commit intomainfrom
chore/rename-test-id-fixture

Conversation

@jonathangreen
Copy link
Member

Description

Rename TestIdFixture to IdFixture across test fixture files and add a new int_id property.

Motivation and Context

The Test prefix on TestIdFixture caused pytest to collect the class as a test, which produced warnings. Renaming to IdFixture avoids this issue. The new int_id property provides a 32-bit integer unique to each test run, useful for resources that need numeric identifiers.

How Has This Been Tested?

  • Existing tests continue to pass with the renamed fixture.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.04%. Comparing base (70cfc78) to head (4c5f7b1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3047   +/-   ##
=======================================
  Coverage   93.04%   93.04%           
=======================================
  Files         480      480           
  Lines       43712    43712           
  Branches     6028     6028           
=======================================
  Hits        40670    40670           
  Misses       1972     1972           
  Partials     1070     1070           

☔ 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.

Rename to avoid pytest collecting the class as a test due to the "Test"
prefix, which caused warnings. Also adds an int_id property that
provides a 32-bit integer unique to each test run.
@jonathangreen jonathangreen force-pushed the chore/rename-test-id-fixture branch from 774bdfe to 4c5f7b1 Compare February 13, 2026 01:28
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧

@jonathangreen jonathangreen merged commit bbe338c into main Feb 13, 2026
19 checks passed
@jonathangreen jonathangreen deleted the chore/rename-test-id-fixture branch February 13, 2026 14:46
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