Skip to content

Commit

Permalink
tests: fix circulation stats tests and setup
Browse files Browse the repository at this point in the history
Co-Authored-by: Pascal Repond <[email protected]>
  • Loading branch information
PascalRepond committed Nov 27, 2023
1 parent 865405a commit 9fec81b
Show file tree
Hide file tree
Showing 15 changed files with 79 additions and 58 deletions.
2 changes: 1 addition & 1 deletion data/stats_cfg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "library 1, no distributions",
"description": "Statistics configuration with no distributions",
"category": {
"type": "catalogue",
"type": "catalog",
"indicator": {
"type": "number_of_documents"
}
Expand Down
2 changes: 1 addition & 1 deletion rero_ils/manual_translations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ _('number_of_checkins')
_('number_of_checkouts')
_('number_of_extends')
_('number_of_requests')
_('number_of_validated_requests')
_('number_of_validate_requests')
_('number_of_patrons')
_('number_of_active_patrons')
2 changes: 1 addition & 1 deletion rero_ils/modules/stats/api/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def indicator_cfg(self):
'number_of_checkouts': NumberOfCirculationCfg(self, 'checkout'),
'number_of_extends': NumberOfCirculationCfg(self, 'extend'),
'number_of_requests': NumberOfRequestsCfg(self, 'request'),
'number_of_validated_requests': NumberOfRequestsCfg(
'number_of_validate_requests': NumberOfRequestsCfg(
self, 'validate_request'),
'number_of_patrons': NumberOfPatronsCfg(self),
'number_of_active_patrons': NumberOfActivePatronsCfg(self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,8 @@
"type": {
"title": "Type",
"type": "string",
"const": "number_of_validated_requests",
"default": "number_of_validated_requests",
"const": "number_of_validate_requests",
"default": "number_of_validate_requests",
"widget": {
"formlyConfig": {
"wrappers": [
Expand Down
12 changes: 8 additions & 4 deletions rero_ils/translations/ar/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2021-10-24 13:38+0000\n"
"Last-Translator: ButterflyOfFire <[email protected]>\n"
"Language: ar\n"
Expand All @@ -21,7 +21,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -623,8 +623,9 @@ msgid "number_of_requests"
msgstr ""

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgstr ""
#, fuzzy
msgid "number_of_validate_requests"
msgstr "رقم الوحدات"

#: rero_ils/manual_translations.txt:119
msgid "number_of_patrons"
Expand Down Expand Up @@ -13138,3 +13139,6 @@ msgstr "تمت إعادة تعيين كلمتك السرية بنجاح."
#~ msgid "Catalogue"
#~ msgstr ""

#~ msgid "number_of_validated_requests"
#~ msgstr ""

14 changes: 7 additions & 7 deletions rero_ils/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2023-11-23 15:27+0000\n"
"Last-Translator: Pascal Repond <[email protected]>\n"
"Language-Team: German <https://hosted.weblate.org/projects/rero_plus/"
"rero-ils/de/>\n"
"Language: de\n"
"Language-Team: German <https://hosted.weblate.org/projects/rero_plus"
"/rero-ils/de/>\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.2.1-rc\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -629,7 +628,7 @@ msgid "number_of_requests"
msgstr "Anzahl der Bestellungen"

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr "Anzahl der validierten Bestellungen"

#: rero_ils/manual_translations.txt:119
Expand Down Expand Up @@ -13106,3 +13105,4 @@ msgstr "Ihr Passwort wurde erfolgreich zurückgesetzt."

#~ msgid "Catalogue"
#~ msgstr "Katalog"

14 changes: 7 additions & 7 deletions rero_ils/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2023-11-23 15:27+0000\n"
"Last-Translator: Pascal Repond <[email protected]>\n"
"Language-Team: English <https://hosted.weblate.org/projects/rero_plus/"
"rero-ils/en/>\n"
"Language: en\n"
"Language-Team: English <https://hosted.weblate.org/projects/rero_plus"
"/rero-ils/en/>\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.2.1-rc\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -630,7 +629,7 @@ msgid "number_of_requests"
msgstr "Number of requests"

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr "Number of validated requests"

#: rero_ils/manual_translations.txt:119
Expand Down Expand Up @@ -13021,3 +13020,4 @@ msgstr "Your password has been successfully reset."

#~ msgid "Catalogue"
#~ msgstr "Catalog"

9 changes: 6 additions & 3 deletions rero_ils/translations/eo/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 1.0.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2021-06-09 13:00+0000\n"
"Last-Translator: Nicolas Prongué <[email protected]>\n"
"Language: eo\n"
Expand All @@ -17,7 +17,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -636,7 +636,7 @@ msgid "number_of_requests"
msgstr ""

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr ""

#: rero_ils/manual_translations.txt:119
Expand Down Expand Up @@ -12829,3 +12829,6 @@ msgstr ""
#~ msgid "Catalogue"
#~ msgstr ""

#~ msgid "number_of_validated_requests"
#~ msgstr ""

11 changes: 7 additions & 4 deletions rero_ils/translations/es/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2023-11-22 13:50+0000\n"
"Last-Translator: Pascal Repond <[email protected]>\n"
"Language: es\n"
Expand All @@ -22,7 +22,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -624,8 +624,8 @@ msgid "number_of_requests"
msgstr ""

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgstr ""
msgid "number_of_validate_requests"
msgstr "Número de solicitudes validadas"

#: rero_ils/manual_translations.txt:119
msgid "number_of_patrons"
Expand Down Expand Up @@ -13090,3 +13090,6 @@ msgstr "Se ha restablecido su contraseña correctamente."
#~ msgid "Catalogue"
#~ msgstr "Catálogo"

#~ msgid "number_of_validated_requests"
#~ msgstr ""

14 changes: 7 additions & 7 deletions rero_ils/translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2023-11-23 15:27+0000\n"
"Last-Translator: Pascal Repond <[email protected]>\n"
"Language-Team: French <https://hosted.weblate.org/projects/rero_plus/"
"rero-ils/fr/>\n"
"Language: fr\n"
"Language-Team: French <https://hosted.weblate.org/projects/rero_plus"
"/rero-ils/fr/>\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.2.1-rc\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -633,7 +632,7 @@ msgid "number_of_requests"
msgstr "Nombre de demandes"

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr "Nombre de demandes validées"

#: rero_ils/manual_translations.txt:119
Expand Down Expand Up @@ -13117,3 +13116,4 @@ msgstr "Votre mot de passe a été réinitialisé avec succès."

#~ msgid "Catalogue"
#~ msgstr "Catalogue"

14 changes: 7 additions & 7 deletions rero_ils/translations/it/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2023-11-23 15:27+0000\n"
"Last-Translator: Pascal Repond <[email protected]>\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/rero_plus/"
"rero-ils/it/>\n"
"Language: it\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/rero_plus"
"/rero-ils/it/>\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.2.1-rc\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -631,7 +630,7 @@ msgid "number_of_requests"
msgstr "Numero di richieste"

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr "Numero di richieste convalidate"

#: rero_ils/manual_translations.txt:119
Expand Down Expand Up @@ -13099,3 +13098,4 @@ msgstr "La tua password è stata reimposta con successo."

#~ msgid "Catalogue"
#~ msgstr "Catalogo"

6 changes: 3 additions & 3 deletions rero_ils/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 1.19.0\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -617,7 +617,7 @@ msgid "number_of_requests"
msgstr ""

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr ""

#: rero_ils/manual_translations.txt:119
Expand Down
12 changes: 8 additions & 4 deletions rero_ils/translations/nl/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 0.9.1\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2023-11-23 13:17+0000\n"
"Last-Translator: Ranforingus <[email protected]>\n"
"Language: nl\n"
Expand All @@ -21,7 +21,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -672,8 +672,9 @@ msgid "number_of_requests"
msgstr ""

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgstr ""
#, fuzzy
msgid "number_of_validate_requests"
msgstr "validatie van de aanvraag"

#: rero_ils/manual_translations.txt:119
msgid "number_of_patrons"
Expand Down Expand Up @@ -13265,3 +13266,6 @@ msgstr ""
#~ msgid "Catalogue"
#~ msgstr ""

#~ msgid "number_of_validated_requests"
#~ msgstr ""

9 changes: 6 additions & 3 deletions rero_ils/translations/ru/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: rero-ils 1.7.0\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-23 16:09+0100\n"
"POT-Creation-Date: 2023-11-24 08:40+0100\n"
"PO-Revision-Date: 2022-01-21 16:53+0000\n"
"Last-Translator: lushnikov3d37b9a0863842c1 <[email protected]>\n"
"Language: ru\n"
Expand All @@ -18,7 +18,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"
"Generated-By: Babel 2.13.1\n"

#: rero_ils/accounts_views.py:60
msgid "The 2 passwords are not identical."
Expand Down Expand Up @@ -633,7 +633,7 @@ msgid "number_of_requests"
msgstr ""

#: rero_ils/manual_translations.txt:118
msgid "number_of_validated_requests"
msgid "number_of_validate_requests"
msgstr ""

#: rero_ils/manual_translations.txt:119
Expand Down Expand Up @@ -12811,3 +12811,6 @@ msgstr ""
#~ msgid "Catalogue"
#~ msgstr ""

#~ msgid "number_of_validated_requests"
#~ msgstr ""

Loading

0 comments on commit 9fec81b

Please sign in to comment.