Bugzilla – Attachment 128900 Details for
Bug 20551
Add option for including deleted records in export_records.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20551: Fix tests
Bug-20551-Fix-tests.patch (text/plain), 1.95 KB, created by
Frank Hansen
on 2021-12-23 17:15:11 UTC
(
hide
)
Description:
Bug 20551: Fix tests
Filename:
MIME Type:
Creator:
Frank Hansen
Created:
2021-12-23 17:15:11 UTC
Size:
1.95 KB
patch
obsolete
>From a56f9598e6aa32cfcd0b750dedc661cc0d777c4a Mon Sep 17 00:00:00 2001 >From: David Gustafsson <glasklas@gmail.com> >Date: Thu, 22 Jul 2021 16:22:58 +0200 >Subject: [PATCH] Bug 20551: Fix tests > >Signed-off-by: Frank Hansen <frank.hansen@ub.lu.se> > >Works fine for me. >Signing off >--- > t/db_dependent/Exporter/Record.t | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/Exporter/Record.t b/t/db_dependent/Exporter/Record.t >index 8e65ce74db..e488b7aca7 100755 >--- a/t/db_dependent/Exporter/Record.t >+++ b/t/db_dependent/Exporter/Record.t >@@ -28,7 +28,7 @@ use MARC::Batch; > use File::Slurp; > use Encode; > >-use C4::Biblio qw( AddBiblio ); >+use C4::Biblio qw( AddBiblio DelBiblio ); > use C4::Context; > use Koha::Database; > use Koha::Biblio; >@@ -175,8 +175,10 @@ subtest 'export xml' => sub { > is( $title, $biblio_2_title, 'Export XML: The title is correctly encoded' ); > > my $deleted_record = $records[2]; >- # Leader has the expected value (and record status "d") >- is( $deleted_record->leader, '00136dam a22000617a 4500', 'Deleted record has the correct leader value' ); >+ >+ # Leader has the expected value (and record status "d", length may have >+ # changed) >+ ok( $deleted_record->leader =~ '\d{5}dam a22000617a 4500', 'Deleted record has the expected leader value' ); > }; > > subtest 'export iso2709' => sub { >@@ -207,8 +209,9 @@ subtest 'export iso2709' => sub { > is( $title, $biblio_2_title, 'Export ISO2709: The title is correctly encoded' ); > > my $deleted_record = $records[2]; >- # Leader has the expected value (and record status "d") >- is( $deleted_record->leader, '00136dam a22000617a 4500', 'Deleted record has the correct leader value' ); >+ # Leader has the expected value (and record status "d", length may have >+ # changed) >+ ok( $deleted_record->leader =~ '\d{5}dam a22000617a 4500', 'Deleted record has the expected leader value' ); > }; > > subtest 'export without record_type' => sub { >-- >2.30.2
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 20551
:
73916
|
73923
|
75113
|
82843
|
82914
|
82918
|
90184
|
90190
|
90220
|
93619
|
93620
|
93621
|
105403
|
116408
|
116409
|
116410
|
116411
|
123099
|
123101
|
123102
|
125211
|
125212
|
125213
|
125214
|
125215
|
125216
|
128895
|
128896
|
128897
|
128898
|
128899
|
128900
|
132936
|
132937
|
176623
|
176624
|
176625
|
176626
|
176627
|
176628
|
176629
|
176630
|
176631
|
177536