Bug 34887

Summary: Merge Patron.t into t/db/Koha/Patron.t
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: fridolin.somers
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.11.00,23.05.05,22.11.11
Circulation function:
Bug Depends on:    
Bug Blocks: 34336    
Attachments: Bug 34887: Remove Test::DBIx::Class from Patron.t
Bug 34887: Fix transactions in db dependent Patron.t
Bug 34887: Merge with db_dependent Patron.t
Bug 34887: Remove Test::DBIx::Class from Patron.t
Bug 34887: Fix transactions in db dependent Patron.t
Bug 34887: Merge with db_dependent Patron.t

Description Marcel de Rooy 2023-09-22 13:53:52 UTC
Part of Test::DBIx::Class removal.
Note that these tests are so trivial that you could be tempted to remove them all together..
Comment 1 Marcel de Rooy 2023-09-23 07:14:06 UTC
Created attachment 156128 [details] [review]
Bug 34887: Remove Test::DBIx::Class from Patron.t

Moving all tests into one subtest with two underlying
subtests for checking accessors after new or set.
This will make it more easy to merge with the db
dependent counterpart.

Test plan:
Run t/Patron.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 2 Marcel de Rooy 2023-09-23 07:14:09 UTC
Created attachment 156129 [details] [review]
Bug 34887: Fix transactions in db dependent Patron.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 3 Marcel de Rooy 2023-09-23 07:14:11 UTC
Created attachment 156130 [details] [review]
Bug 34887: Merge with db_dependent Patron.t

Test plan:
Run t/db_dependent/Koha/Patron.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 4 Marcel de Rooy 2023-09-23 07:14:41 UTC
Moving to SO. Trivial exercise. Run the test !
Comment 5 Jonathan Druart 2023-09-26 09:57:38 UTC
Created attachment 156207 [details] [review]
Bug 34887: Remove Test::DBIx::Class from Patron.t

Moving all tests into one subtest with two underlying
subtests for checking accessors after new or set.
This will make it more easy to merge with the db
dependent counterpart.

Test plan:
Run t/Patron.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 6 Jonathan Druart 2023-09-26 09:57:41 UTC
Created attachment 156208 [details] [review]
Bug 34887: Fix transactions in db dependent Patron.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 7 Jonathan Druart 2023-09-26 09:57:43 UTC
Created attachment 156209 [details] [review]
Bug 34887: Merge with db_dependent Patron.t

Test plan:
Run t/db_dependent/Koha/Patron.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

JD amended patch: Fixed QA failures
 FAIL   t/db_dependent/Koha/Patron.t
   FAIL   spelling
                 personnal ==> personal
                 personnal ==> personal
                 personnal ==> personal
                 personnal ==> personal
   WARN   tidiness
                The file is less tidy than before (bad/messy lines before: 361, now: 382)
Comment 8 Tomás Cohen Arazi (tcohen) 2023-10-04 13:33:43 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 9 Fridolin Somers 2023-10-05 20:12:03 UTC
Pushed to 23.05.x for 23.05.05
Comment 10 Matt Blenkinsop 2023-10-17 17:12:01 UTC
Nice work everyone!

Pushed to oldstable for 22.11.x