Bug 32408: Add unit tests to SIP checkout
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Thu, 8 Dec 2022 10:38:10 +0000 (10:38 +0000)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Thu, 9 Feb 2023 13:08:07 +0000 (12:08 -0100)
commit77b28f46f075f50f46d871e8dd3321b54c7fc0e6
tree75e1f23f95dc316339c61e8dd50d704f4c79f247
parent6f2aeda4c3a9e294765749a51570949b90e70d26
Bug 32408: Add unit tests to SIP checkout

This patch adds unit tests to show SIP's behavior on checkout according to the
AllFinesNeedOverride, AllowFineOverride and noissuescharge sysprefs, knowingly:

+----------------------+-------------------+---------+---------+
| AllFinesNeedOverride | AllowFineOverride |  Under  |  Over   |
+----------------------+-------------------+---------+---------+
|                    0 |                 0 | allowed | blocked |
|                    0 |                 1 | allowed | blocked |
|                    1 |                 0 | blocked | blocked |
|                    1 |                 1 | blocked | blocked |
+----------------------+-------------------+---------+---------+

(the columns Under and Over are referring to "under noissuescharge" and
"over noissuescharge")

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5f97fa18cc4dfc133f535815395b34f5cc7bfffa)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
t/db_dependent/SIP/Transaction.t