Bugzilla – Attachment 113732 Details for
Bug 27015
Add filtering options to the pickup_locations routes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27015: Unit tests
Bug-27015-Unit-tests.patch (text/plain), 1.15 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-11-17 13:47:43 UTC
(
hide
)
Description:
Bug 27015: Unit tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-11-17 13:47:43 UTC
Size:
1.15 KB
patch
obsolete
>From 6d1609ee19981e36a36116ef9940d4283ad8b3ea Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 17 Nov 2020 10:45:00 -0300 >Subject: [PATCH] Bug 27015: Unit tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/api/v1/holds.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/holds.t b/t/db_dependent/api/v1/holds.t >index 585e19a8a50..90a4cdabfbe 100755 >--- a/t/db_dependent/api/v1/holds.t >+++ b/t/db_dependent/api/v1/holds.t >@@ -675,7 +675,7 @@ subtest 'add() tests (maxreserves behaviour)' => sub { > > subtest 'pickup_locations() tests' => sub { > >- plan tests => 6; >+ plan tests => 9; > > $schema->storage->txn_begin; > >@@ -775,5 +775,12 @@ subtest 'pickup_locations() tests' => sub { > . "/pickup_locations" ) > ->json_is( [ $library_1->to_api, $library_2->to_api ] ); > >+ # filtering works! >+ $t->get_ok( "//$userid:$password@/api/v1/holds/" >+ . $hold_2->id >+ . '/pickup_locations?q={"marc_org_code": { "-like": "A%" }}' ) >+ ->json_is( [ $library_1->to_api ] ); >+ >+ > $schema->storage->txn_rollback; > }; >-- >2.29.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 27015
:
113657
|
113732
|
113733
|
113761
|
113762
|
113789
|
113790