Bugzilla – Attachment 14306 Details for
Bug 9209
Mocked Koha::Calendar tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9209: Skip tests for older DBD::Mock
Bug-9209-Skip-tests-for-older-DBDMock.patch (text/plain), 1.05 KB, created by
Liz Rea
on 2012-12-28 01:54:10 UTC
(
hide
)
Description:
Bug 9209: Skip tests for older DBD::Mock
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-12-28 01:54:10 UTC
Size:
1.05 KB
patch
obsolete
>From 406bd94d1f160b75349d61e011162806525c5d74 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Thu, 27 Dec 2012 20:14:57 -0500 >Subject: [PATCH] Bug 9209: Skip tests for older DBD::Mock > >Because the calendar tests require a more recent version of DBD::Mock >than has been packaged by Debian, it makes sense to skip all the tests >requiring the database when only an older version is present. > >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >Works as advertised >--- > t/Calendar.t | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/Calendar.t b/t/Calendar.t >index 2557ed6..8648968 100755 >--- a/t/Calendar.t >+++ b/t/Calendar.t >@@ -37,6 +37,10 @@ $module_context->mock( > } > ); > >+SKIP: { >+ >+skip "DBD::Mock is too old", 33 >+ unless $DBD::Mock::VERSION >= 1.45; > > my $holidays_session = DBD::Mock::Session->new('holidays_session' => ( > { # weekly holidays >@@ -320,3 +324,5 @@ my $day_after_christmas = DateTime->new( > '==', 40, 'Test parameter order not relevant (Days)' ); > > } >+ >+} # End SKIP block >-- >1.7.9.5
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 9209
:
13885
|
13932
|
14305
| 14306