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

Completed test coverage for django.utils.dateformat and simplified some formats. #14415

Merged
merged 3 commits into from Jul 13, 2021

Conversation

ngnpope
Copy link
Member

@ngnpope ngnpope commented May 19, 2021

I've left this split into separate commits to make it easier to follow.

@ngnpope ngnpope force-pushed the cleanup-dateformat branch 2 times, most recently from 4895ff1 to 3673e2e Compare May 20, 2021 09:39
@ngnpope ngnpope changed the title Increased utils_tests.test_dateformat coverage to 100% and simplified some formats. Increased django.utils.dateformat coverage to 100% and simplified some formats. May 20, 2021
@ngnpope ngnpope requested a review from felixxm July 9, 2021 20:41
@ngnpope
Copy link
Member Author

ngnpope commented Jul 9, 2021

@felixxm I've rebased this one.

Your #14602 (comment) mentioned that this PR might address use of subTest(), but that is for django.utils.dateparse and this is for django.utils.dateformat. Regardless, this is ready for review.

@ngnpope
Copy link
Member Author

ngnpope commented Jul 13, 2021

Thanks @felixxm. Updated.

This removes unnecessary format('O') call, remove unnecessary method
calls for simple cases in TimeFormat, and simplifies time zone handling
in TimeFormat.
@felixxm felixxm changed the title Increased django.utils.dateformat coverage to 100% and simplified some formats. Increased django.utils.dateformat coverage to 100% and simplified some formats. Jul 13, 2021
@felixxm felixxm changed the title Increased django.utils.dateformat coverage to 100% and simplified some formats. Completed test coverage for django.utils.dateformat and simplified some formats. Jul 13, 2021
@felixxm
Copy link
Member

felixxm commented Jul 13, 2021

@pope1ni Thanks 👍 I reorganized commits.

@felixxm felixxm merged commit 1f4908b into django:main Jul 13, 2021
@ngnpope ngnpope deleted the cleanup-dateformat branch July 13, 2021 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants