diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-15 11:42:29 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-16 17:31:07 +0100 |
commit | 25f954a6a7701f897001f28efd17f9136b7b7c08 (patch) | |
tree | 909a4e28720f185b35a0aa5fd004fe0ae6c4ba58 /t | |
parent | 67712d728fa89f8e30eeff40744642595b8e56dc (diff) |
Shrink test sample photo.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/photo.t | 6 | ||||
-rw-r--r-- | t/app/controller/sample.jpg | bin | 22570 -> 3061 bytes | |||
-rw-r--r-- | t/app/model/photoset.t | 2 | ||||
-rw-r--r-- | t/open311/getservicerequestupdates.t | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/t/app/controller/photo.t b/t/app/controller/photo.t index a065c7732..69c2ae866 100644 --- a/t/app/controller/photo.t +++ b/t/app/controller/photo.t @@ -66,12 +66,12 @@ subtest "Check multiple upload worked" => sub { ok $mech->success, 'Made request with multiple photo upload'; $mech->base_is('http://localhost/report/new'); $mech->content_like( - qr[(<img align="right" src="/photo/temp.7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg" alt="">\s*){3}], + qr[(<img align="right" src="/photo/temp.74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg" alt="">\s*){3}], 'Three uploaded pictures are all shown, safe'); $mech->content_contains( - 'name="upload_fileid" value="7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg,7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg,7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg"', + 'name="upload_fileid" value="74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg,74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg,74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg"', 'Returned upload_fileid contains expected hash, 3 times'); - my $image_file = path($UPLOAD_DIR, '7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg'); + my $image_file = path($UPLOAD_DIR, '74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg'); ok $image_file->exists, 'File uploaded to temp'; }; }; diff --git a/t/app/controller/sample.jpg b/t/app/controller/sample.jpg Binary files differindex 4930821c4..b84c0c94e 100644 --- a/t/app/controller/sample.jpg +++ b/t/app/controller/sample.jpg diff --git a/t/app/model/photoset.t b/t/app/model/photoset.t index f0fc601e2..54530adfb 100644 --- a/t/app/model/photoset.t +++ b/t/app/model/photoset.t @@ -58,7 +58,7 @@ subtest 'Photoset with photo inline in DB' => sub { my $report = make_report( $image_path->slurp ); my $photoset = $report->get_photoset(); is $photoset->num_images, 1, 'Found just 1 image'; - is $photoset->data, '7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg'; + is $photoset->data, '74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg'; }; $image_path->copy( path( $UPLOAD_DIR, '0123456789012345678901234567890123456789.jpeg' ) ); diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t index fa6c4b4b6..8876a3ccf 100644 --- a/t/open311/getservicerequestupdates.t +++ b/t/open311/getservicerequestupdates.t @@ -388,7 +388,7 @@ subtest 'Update with media_url includes image in update' => sub { is $problem->comments->count, 1, 'comment count'; my $c = $problem->comments->first; is $c->external_id, 638344; - is $c->photo, '7f09ef2c3933731d47121fee1b8038b3fdd3bc77.jpeg', 'photo exists'; + is $c->photo, '74e3362283b6ef0c48686fb0e161da4043bbcc97.jpeg', 'photo exists'; }; foreach my $test ( |