Bugzilla – Attachment 113761 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.20 KB, created by
David Nind
on 2020-11-17 20:11:05 UTC
(
hide
)
Description:
Bug 27015: Unit tests
Filename:
MIME Type:
Creator:
David Nind
Created:
2020-11-17 20:11:05 UTC
Size:
1.20 KB
patch
obsolete
>From b0838d7d7ee7b890d3f186410af295683607a213 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> > >Signed-off-by: David Nind <david@davidnind.com> >--- > 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 585e19a8a5..90a4cdabfb 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.11.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 27015
:
113657
|
113732
|
113733
|
113761
|
113762
|
113789
|
113790