Created attachment 159289 [details] [review] Bug 35418: Add TR_B2 tests This test file adds tests for the TR_B2 specific report. But also tests for this specific bug, which only happens if the report time period ends in december
Created attachment 159290 [details] [review] Bug 35418: Fix _get_usage_months No longer falls in an endless loop if the last month in the report period is december. Test plan: 1) Apply just the tests patch, run EUsage tests prove t/db_dependent/Koha/ERM/EUsage/ 2) Wait for a few seconds. Notice SushiCounter.t it hangs. CTRL+C (cancel it) 3) Apply the fix patch. 4) Run the tests again. Notice all EUsage tests pass with no issues.
Created attachment 159323 [details] [review] Bug 35418: Add TR_B2 tests This test file adds tests for the TR_B2 specific report. But also tests for this specific bug, which only happens if the report time period ends in december Signed-off-by: David Nind <david@davidnind.com>
Created attachment 159324 [details] [review] Bug 35418: Fix _get_usage_months No longer falls in an endless loop if the last month in the report period is december. Test plan: 1) Apply just the tests patch, run EUsage tests prove t/db_dependent/Koha/ERM/EUsage/ 2) Wait for a few seconds. Notice SushiCounter.t it hangs. CTRL+C (cancel it) 3) Apply the fix patch. 4) Run the tests again. Notice all EUsage tests pass with no issues. Signed-off-by: David Nind <david@davidnind.com>
Created attachment 159347 [details] [review] Bug 35418: Add TR_B2 tests This test file adds tests for the TR_B2 specific report. But also tests for this specific bug, which only happens if the report time period ends in december Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>
Created attachment 159348 [details] [review] Bug 35418: Fix _get_usage_months No longer falls in an endless loop if the last month in the report period is december. Test plan: 1) Apply just the tests patch, run EUsage tests prove t/db_dependent/Koha/ERM/EUsage/ 2) Wait for a few seconds. Notice SushiCounter.t it hangs. CTRL+C (cancel it) 3) Apply the fix patch. 4) Run the tests again. Notice all EUsage tests pass with no issues. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>
Created attachment 159373 [details] [review] Bug 35418: Add TR_B2 tests This test file adds tests for the TR_B2 specific report. But also tests for this specific bug, which only happens if the report time period ends in december Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 159374 [details] [review] Bug 35418: Fix _get_usage_months No longer falls in an endless loop if the last month in the report period is december. Test plan: 1) Apply just the tests patch, run EUsage tests prove t/db_dependent/Koha/ERM/EUsage/ 2) Wait for a few seconds. Notice SushiCounter.t it hangs. CTRL+C (cancel it) 3) Apply the fix patch. 4) Run the tests again. Notice all EUsage tests pass with no issues. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Pushed to master for 23.11. Nice work everyone, thanks!