-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patron: add circulation statistic API #1312
patron: add circulation statistic API #1312
Conversation
3382e7f
to
cb632de
Compare
d493943
to
afbc9dc
Compare
|
||
login_user_via_session(client, librarian_martigny_no_email.user) | ||
res = client.get(url) | ||
assert res.status_code == 200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test to validate the output of the function get_loans_stats_by_patron_pid
? so we are sure it is returning the expected results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's difficult because stats are different if you execute the test as standalone or with the full tests.
afbc9dc
to
9c134a2
Compare
da250ee
to
97dfe0e
Compare
b97aa84
to
00cacf1
Compare
cb2b3d5
to
adf2b28
Compare
Adds an API to get patron circulation informations. This API return the number of loans relate to this patron by state and messages useful for the circulation about this patron (patron blocked, checkout limit, ...) Closes rero#1278 Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
adf2b28
to
befae76
Compare
Adds an API to get patron circulation loan statistics. This API return
the number of loans relate to this patron by state.
Closes #1278
Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com
Code review check list