Bugzilla – Attachment 118342 Details for
Bug 26405
Circulation.t fails on 'AddRenewal left both fines'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26405: Prevent Circulation.t failing on 'AddRenewal left both fines'
Bug-26405-Prevent-Circulationt-failing-on-AddRenew.patch (text/plain), 1.39 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-03-16 17:32:32 UTC
(
hide
)
Description:
Bug 26405: Prevent Circulation.t failing on 'AddRenewal left both fines'
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-03-16 17:32:32 UTC
Size:
1.39 KB
patch
obsolete
>From a8b5b983b30ba4a86e2644f656980b3b7b89c267 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@outlook.com> >Date: Thu, 3 Dec 2020 10:41:47 +0200 >Subject: [PATCH] Bug 26405: Prevent Circulation.t failing on 'AddRenewal left > both fines' > >Bug 23051 added option to skip calculating fines even when >"CalculateFinesOnReturn" is enabled. Due this Circulation.t >fails on test "AddRenewal left both fines" if >"CalculateFinesOnReturn" is disabled on ones system. >Mocking syspref while testing fixes failig tests. > >To test: >1. Disable "CalculateFinesOnReturn". >2. Run prove t/db_dependent/Circulation.t >=> Tests fail >3. Apply patch. >4. Run prove t/db_dependent/Circulation.t again >=> Tests are succesful > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Circulation.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index d0bfe6e2072..1ad49feea1c 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -619,6 +619,9 @@ subtest "CanBookBeRenewed tests" => sub { > } > ); > >+ # Make sure fine calculation isn't skipped when adding renewal >+ t::lib::Mocks::mock_preference('CalculateFinesOnReturn', 1); >+ > t::lib::Mocks::mock_preference('RenewalLog', 0); > my $date = output_pref( { dt => dt_from_string(), dateonly => 1, dateformat => 'iso' } ); > my %params_renewal = ( >-- >2.31.0
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 26405
:
114135
|
118342
|
120122