Bugzilla – Attachment 65577 Details for
Bug 18851
Use Test::DBIx::Class in tests breaks packaging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18851: Make OverDrive.T pass if dbms is not running
Bug-18851-Make-OverDriveT-pass-if-dbms-is-not-runn.patch (text/plain), 1.30 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-08-07 15:36:40 UTC
(
hide
)
Description:
Bug 18851: Make OverDrive.T pass if dbms is not running
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-08-07 15:36:40 UTC
Size:
1.30 KB
patch
obsolete
>From 2fb81367a2c850aac1ca10d0fdf3274881a2d572 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 24 Jul 2017 12:44:30 -0300 >Subject: [PATCH] Bug 18851: Make OverDrive.T pass if dbms is not running > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/Koha_ExternalContent_OverDrive.t | 22 ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) > >diff --git a/t/Koha_ExternalContent_OverDrive.t b/t/Koha_ExternalContent_OverDrive.t >index 5d2486f..f4cb775 100755 >--- a/t/Koha_ExternalContent_OverDrive.t >+++ b/t/Koha_ExternalContent_OverDrive.t >@@ -1,9 +1,27 @@ >+#!/usr/bin/env perl >+ > use Modern::Perl; > > use t::lib::Mocks; >-use Test::More tests => 5; # last test to print >+use Test::More; >+use Test::MockModule; >+ >+use Module::Load::Conditional qw( can_load check_install ); >+ >+use Koha::Schema; >+ >+BEGIN { >+ if ( check_install( module => 'Test::DBIx::Class' ) ) { >+ plan tests => 5; >+ } else { >+ plan skip_all => "Need Test::DBIx::Class" >+ } >+} >+ >+use Test::DBIx::Class; > >-use Module::Load::Conditional qw( can_load ); >+my $db = Test::MockModule->new('Koha::Database'); >+$db->mock( _new_schema => sub { return Schema(); } ); > > SKIP: { > skip "cannot find WebService::ILS::OverDrive::Patron", 5 >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18851
:
64830
|
64831
|
64832
|
64913
|
64979
|
64990
|
64991
|
64992
|
64993
|
65199
|
65368
|
65574
|
65575
|
65576
| 65577 |
65578
|
65579