Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #32959 -- Moved tests URLs to validators.tests. #14705

Merged
merged 1 commit into from Jul 28, 2021

Conversation

chrishna1
Copy link
Contributor

No description provided.

@github-actions
Copy link

Hello @chrishna1! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

Copy link
Contributor

@cjerdonek cjerdonek left a comment

Choose a reason for hiding this comment

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

I would do this in two commits, IMO, using the first commit to show that the test data in the module matches the test data in the file. This can be done with an assert after each url is read. The second commit can then remove the text files. The two commits would be squashed prior to merging.

tests/validators/tests.py Outdated Show resolved Hide resolved
Copy link
Contributor

@cjerdonek cjerdonek left a comment

Choose a reason for hiding this comment

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

A couple more comments that occurred to me.

tests/validators/tests.py Outdated Show resolved Hide resolved
tests/validators/tests.py Outdated Show resolved Hide resolved
@chrishna1 chrishna1 force-pushed the main branch 2 times, most recently from 551b15b to de10213 Compare July 27, 2021 20:36
@chrishna1
Copy link
Contributor Author

Hi @cjerdonek, thanks for your input. I've made changes according to that.

@felixxm felixxm changed the title Fixed #32959 -- Moved test data from raw text file to Python test module Fixed #32959 -- Moved tests URLs to validators.tests. Jul 28, 2021
@felixxm
Copy link
Member

felixxm commented Jul 28, 2021

@chrishna1 Thanks 👍 Welcome aboard ⛵

I squashed commits and pushed minor edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants