Bugzilla – Attachment 54521 Details for
Bug 14504
Add command-line script to batch delete items based on data in items table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14504: (QA followup) Tidy tests
Bug-14504-QA-followup-Tidy-tests.patch (text/plain), 1.07 KB, created by
Kyle M Hall (khall)
on 2016-08-16 15:55:37 UTC
(
hide
)
Description:
Bug 14504: (QA followup) Tidy tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-08-16 15:55:37 UTC
Size:
1.07 KB
patch
obsolete
>From 665d323ec74a405428ea686ce45e8baef4e468dc Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 8 Jul 2016 09:45:12 -0300 >Subject: [PATCH] Bug 14504: (QA followup) Tidy tests > >This patch re-introduces the transaction into t/db_dependent/Items_DelItemCheck.t >and does some cleaning on the touched tests so they raise less warnings. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Reserves.t | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index db13f82..ea3f700 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -18,6 +18,7 @@ > use Modern::Perl; > > use Test::More tests => 74; >+use Test::MockModule; > use Test::Warn; > > use MARC::Record; >@@ -39,9 +40,10 @@ BEGIN { > } > > # a very minimal mack of userenv for use by the test of DelItemCheck >-*C4::Context::userenv = sub { >- return {}; >-}; >+my $module = new Test::MockModule('C4::Context'); >+$module->mock('userenv', sub { >+ { } >+}); > > my $dbh = C4::Context->dbh; > >-- >2.1.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 14504
:
40830
|
42978
|
43445
|
43533
|
43788
|
43789
|
44013
|
44149
|
45789
|
49648
|
49649
|
49650
|
49651
|
49652
|
49653
|
52425
|
53224
|
53225
|
54514
|
54515
|
54516
|
54517
|
54518
|
54519
|
54520
|
54521
|
54522
|
54525
|
54530
|
54531
|
54691
|
54692
|
54693
|
54694
|
54695
|
54696
|
54697
|
54698
|
54699
|
54700
|
54701
|
54702
|
54703