Skip to content

chore: Use pytester fixture to test the plugin#133

Open
edgarrmondragon wants to merge 1 commit intomainfrom
pytest-pytester
Open

chore: Use pytester fixture to test the plugin#133
edgarrmondragon wants to merge 1 commit intomainfrom
pytest-pytester

Conversation

@edgarrmondragon
Copy link
Collaborator

@edgarrmondragon edgarrmondragon commented Mar 6, 2026

pytester:

Added in version 6.2.

Provides a Pytester instance that can be used to run and test pytest itself.

It provides an empty directory where pytest can be executed in isolation, and contains facilities to write tests, configuration files, and match against expected output.

testdir:

Identical to pytester, but provides an instance whose methods return legacy py.path.local objects instead when applicable.

New code should avoid using testdir in favor of pytester.

@edgarrmondragon edgarrmondragon self-assigned this Mar 6, 2026
@edgarrmondragon edgarrmondragon changed the title test: Use pytester fixture to test the plugin chore: Use pytester fixture to test the plugin Mar 6, 2026
@edgarrmondragon edgarrmondragon marked this pull request as ready for review March 6, 2026 05:51
@edgarrmondragon edgarrmondragon marked this pull request as draft March 6, 2026 05:51
@github-actions github-actions bot added the chore label Mar 6, 2026
@github-actions github-actions bot added chore and removed chore labels Mar 6, 2026
Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
@github-actions github-actions bot added chore and removed chore labels Mar 6, 2026
@edgarrmondragon edgarrmondragon marked this pull request as ready for review March 6, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant