Skip to content

Add pytest-randomly - #1922

Open
mhucka wants to merge 1 commit into
quantumlib:mainfrom
mhucka:add-pytest-randomly
Open

Add pytest-randomly#1922
mhucka wants to merge 1 commit into
quantumlib:mainfrom
mhucka:add-pytest-randomly

Conversation

@mhucka

@mhucka mhucka commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

pytest-randomly is a Pytest plugin that helps find hidden order dependencies in test suites by randomly shuffling tests and resetting Python's random seed. It prevents bugs where one test unintentionally relies on the state left behind by a previous test.

This is generally a good practice. No Qualtran test failures currently happen from adding to the set of pytest plugins used.

@mhucka
mhucka marked this pull request as ready for review August 2, 2026 03:52
@mhucka mhucka added the area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics label Aug 2, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the pyproject.toml file to add pytest-randomly to the test dependencies and removes a trailing newline at the end of the file. There are no review comments, and I have no feedback to provide.

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

Labels

area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant