Skip to content

Fixed #32808 -- Prevented DiscoverRunner.build_suite() from mutating test loader patterns. - #14478

Merged
felixxm merged 1 commit into
django:mainfrom
felixxm:issue-32808
Jun 3, 2021
Merged

felixxm merged 1 commit into
django:mainfrom
felixxm:issue-32808

Conversation

@felixxm

@felixxm felixxm commented Jun 2, 2021

Copy link
Copy Markdown
Member

@felixxm
felixxm requested a review from cjerdonek June 2, 2021 11:31

@cjerdonek cjerdonek 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.

Looks good. And good work putting that in load_tests_for_label().

We do have one test of that method (test_load_tests_for_label_file_path()). I will leave it up to you as to whether you think this is worth testing.

Comment thread django/test/runner.py Resolved
@cjerdonek

Copy link
Copy Markdown
Contributor

I will leave it up to you as to whether you think this is worth testing.

Or a test of build_suite() would be the better test actually..

@felixxm

felixxm commented Jun 2, 2021

Copy link
Copy Markdown
Member Author

@cjerdonek Thanks 👍 I pushed updates.

Comment thread django/test/runner.py Resolved
@felixxm
felixxm force-pushed the issue-32808 branch 2 times, most recently from d0f4574 to 90cec2a Compare June 3, 2021 05:47
…test loader patterns.

Thanks Chris Jerdonek for the report and reviews.

@cjerdonek cjerdonek 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.

Looks great! 👍 Thanks for your work on this.

@felixxm
felixxm merged commit 62e8f36 into django:main Jun 3, 2021
@felixxm
felixxm deleted the issue-32808 branch June 3, 2021 06:59
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