aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311
diff options
context:
space:
mode:
authorSam Pearson <sam@sgp.me.uk>2020-05-14 10:18:16 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-05-26 17:27:00 +0100
commit38dce48b716c3f6fc1561b976d98eee94af778b3 (patch)
treee754a858e8df7c5edb8439345f915676cdc8044a /t/open311
parent62c93922b3dfcd3489cb32cf55ab03f0e2a8b2ab (diff)
Include updates in failure summary report.
This includes details of any failing updates in the summary script.
Diffstat (limited to 't/open311')
-rw-r--r--t/open311/post-service-request-updates.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/open311/post-service-request-updates.t b/t/open311/post-service-request-updates.t
index adfd4e3c5..71bba4af7 100644
--- a/t/open311/post-service-request-updates.t
+++ b/t/open311/post-service-request-updates.t
@@ -1,12 +1,13 @@
#!/usr/bin/env perl
use FixMyStreet::TestMech;
+use Test::Output;
my $mech = FixMyStreet::TestMech->new;
use_ok( 'Open311::PostServiceRequestUpdates' );
-my $o = Open311::PostServiceRequestUpdates->new( site => 'fixmystreet.com' );
+my $o = Open311::PostServiceRequestUpdates->new;
my $params = {
send_method => 'Open311',
@@ -130,6 +131,7 @@ subtest 'Oxfordshire gets an ID' => sub {
$o->send;
$c2->discard_changes;
is $c2->send_fail_count, 1, 'Oxfordshire update tried to send, failed';
+ stdout_like { $o->summary_failures } qr/The following updates failed sending/;
};
};