From b816cd81fea58adcad5ae216b4dfe9030dad40aa Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 3 Oct 2018 16:37:27 +0100 Subject: Deal with a variety of low-level test warnings. * Stop red warning being output by S3 bucket creation failure test * Make sure 'num_old_reports' is always a number on /around pages * Stop 'category_extra' being generated when unnecessary * Prevent warning printed in getservicerequestupdates.t * Prevent info lines from being output in develop.t * Remove line of #s in root.t * And an ID diag in zurich.t --- t/app/controller/develop.t | 3 +++ t/app/controller/root.t | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 't/app/controller') diff --git a/t/app/controller/develop.t b/t/app/controller/develop.t index 8f26a9f16..7fde5ef83 100644 --- a/t/app/controller/develop.t +++ b/t/app/controller/develop.t @@ -1,5 +1,8 @@ use FixMyStreet::TestMech; +FixMyStreet::App->log->disable('info'); +END { FixMyStreet::App->log->enable('info'); } + ok( my $mech = FixMyStreet::TestMech->new, 'Created mech object' ); my ($problem) = $mech->create_problems_for_body(1, 2504, 'title'); diff --git a/t/app/controller/root.t b/t/app/controller/root.t index b5f8ba031..85119da24 100644 --- a/t/app/controller/root.t +++ b/t/app/controller/root.t @@ -75,7 +75,6 @@ FixMyStreet::override_config { }; subtest "check_login_disallowed cobrand hook" => sub { - warn '#' x 50 . "\n"; my $cobrand = Test::MockModule->new('FixMyStreet::Cobrand::Default'); $cobrand->mock('check_login_disallowed', sub { my $self = shift; -- cgit v1.2.3