File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77from candidates .tests .helpers import TmpMediaRootMixin
88from candidates .tests .uk_examples import UK2015ExamplesMixin
99from django .contrib .auth import get_user_model
10+ from django .utils import timezone
1011from django_webtest import WebTest
1112from moderation_queue .models import QueuedImage
1213from moderation_queue .tests .paths import EXAMPLE_IMAGE_FILENAME
@@ -76,7 +77,7 @@ def test_person_image_modified_timestamp(self):
7677 "user_notes" : "A photo of Tessa Jowell" ,
7778 },
7879 )
79- modified = pi .modified
80+ modified = timezone . localtime ( pi .modified )
8081 response = self .app .get (f"/person/{ person .id } " , user = self .user )
8182 self .assertIn (
8283 f"This photo was uploaded on { modified .strftime ('%-d %B %Y %H:%M' )} ." ,
You can’t perform that action at this time.
0 commit comments