Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
41901185
Commit
41901185
authored
Jul 10, 2017
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore timezone test case for Django 1.8, due to differing behavior.
parent
bf7fcc49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests/test_fields.py
+6
-0
No files found.
tests/test_fields.py
View file @
41901185
...
@@ -5,6 +5,7 @@ import unittest
...
@@ -5,6 +5,7 @@ import unittest
import
uuid
import
uuid
from
decimal
import
Decimal
from
decimal
import
Decimal
import
django
import
pytest
import
pytest
from
django.http
import
QueryDict
from
django.http
import
QueryDict
from
django.test
import
TestCase
,
override_settings
from
django.test
import
TestCase
,
override_settings
...
@@ -1166,6 +1167,11 @@ class TestDateTimeField(FieldValues):
...
@@ -1166,6 +1167,11 @@ class TestDateTimeField(FieldValues):
field
=
serializers
.
DateTimeField
(
default_timezone
=
utc
)
field
=
serializers
.
DateTimeField
(
default_timezone
=
utc
)
if
django
.
VERSION
[:
2
]
<=
(
1
,
8
):
# Doesn't raise an error on earlier versions of Django
TestDateTimeField
.
invalid_inputs
.
pop
(
'2018-08-16 22:00-24:00'
)
class
TestCustomInputFormatDateTimeField
(
FieldValues
):
class
TestCustomInputFormatDateTimeField
(
FieldValues
):
"""
"""
Valid and invalid values for `DateTimeField` with a custom input format.
Valid and invalid values for `DateTimeField` with a custom input format.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment