-
Notifications
You must be signed in to change notification settings - Fork 299
Closed
Labels
Description
This morning I ran all the test and some of the tests suddenly failed because they expect the year 2018 but automatically generated years are now 2019. The affected tests are
example/tests/test_views.py::TestBlogViewSet::test_get_object_gives_correct_blog FAILED
example/tests/unit/test_default_drf_serializers.py::test_blog_create FAILED
example/tests/unit/test_default_drf_serializers.py::test_get_object_gives_correct_blog FAILED
example/tests/unit/test_default_drf_serializers.py::test_get_object_patches_correct_blog FAILED
The reason is always the same:
E Full diff:
E {'data': {'attributes': {'name': 'Kimberly Lewis'},
E 'id': '1',
E 'links': {'self': 'http://testserver/blogs/1'},
E - 'meta': {'copyright': 2019},
E ? ^
E + 'meta': {'copyright': 2018},
E ? ^
E 'relationships': {'tags': {'data': []}},
E 'type': 'blogs'},
E 'meta': {'apiDocs': '/docs/api/blogs'}}
example/tests/unit/test_default_drf_serializers.py:139: AssertionError