Skip to content
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

BUG: Clubs should not be able to use more than their points allowed #2

Open
dompatmore opened this issue Jul 3, 2020 · 0 comments · May be fixed by #226
Open

BUG: Clubs should not be able to use more than their points allowed #2

dompatmore opened this issue Jul 3, 2020 · 0 comments · May be fixed by #226

Comments

@dompatmore
Copy link
Collaborator

dompatmore commented Jul 3, 2020

When:

A secretary redeems more points than they have available, which would leave them in the negative

Then:

They receive a confirmation message

Expected:

They should not be able to redeem more points than available; this should be done within the UI. 
The redeemed points should be correctly deducted from the club's total.  
PabloLec added a commit to PabloLec/oc_gudlift that referenced this issue Jul 6, 2021
mjeammet referenced this issue in mjeammet/DAPY-P11_gudlft Dec 10, 2021
mjeammet referenced this issue in mjeammet/DAPY-P11_gudlft Dec 17, 2021
RafaRemote pushed a commit to RafaRemote/oc_python_p11_testing that referenced this issue Dec 22, 2021
…le - fix and tests

- fix: ui: booking.html: html input attribute min set to 1 and max set to club["points"]
- fix: server.py: purchase_places(): conditional structure implemented, checks redeemed points amount against competition places available

- tests: class TestPurchase created: method: test_should_not_use_more_points_than_have
- tests: class TestPurchase: method: test_should_deduct_points_from_club
RafaRemote pushed a commit to RafaRemote/oc_python_p11_testing that referenced this issue Dec 23, 2021
…le - Tests Improvement

- tests: conftest.py: config fixture to avoid repetition in test_server.py
- UI: welcome.html: added a span to localize more efficiently the 'club_points_left'
RafaRemote pushed a commit to RafaRemote/oc_python_p11_testing that referenced this issue Dec 23, 2021
… info

- fix: bug already fixed when fixing issue [OpenClassrooms-Student-Center#2] as it was specified: 'The redeemed points should be correctly deducted from the club's total.'

-UI: welcome.html: implementation of a table to better show the points redemption and update after a booking
MilhouseVP added a commit to MilhouseVP/Python_Testing that referenced this issue Jan 3, 2022
found another bug during testing : it was possible to buy more places than available, fixed too.
Madscientiste pushed a commit to Madscientiste/OpenClassrooms_P11 that referenced this issue Feb 17, 2022
ribandgel pushed a commit to ribandgel/Python_Testing that referenced this issue Mar 17, 2022
bdibon added a commit to bdibon/Python_Testing that referenced this issue Mar 21, 2022
zionhigt referenced this issue in zionhigt/Python_Testing Mar 27, 2022
zionhigt referenced this issue in zionhigt/Python_Testing Mar 27, 2022
This was referenced Mar 29, 2022
josayko added a commit to josayko-courses/p11_gudlft that referenced this issue Apr 19, 2022
Pascal273 added a commit to Pascal273/Python_Testing that referenced this issue May 8, 2022
-BUG: Clubs should not be able to use more than their points allowed- fixed.
Booking Form won't allow number greater than points available.
Pascal273 added a commit to Pascal273/Python_Testing that referenced this issue May 11, 2022
…se to book places

equals the available points of the club
Luc-Aka-Evy added a commit to Luc-Aka-Evy/Gudlift that referenced this issue May 19, 2022
Aponovi added a commit to Aponovi/Python_Testing that referenced this issue May 30, 2022
SelHel added a commit to SelHel/Python_Testing that referenced this issue Jun 9, 2022
SelHel added a commit to SelHel/Python_Testing that referenced this issue Jun 9, 2022
SelHel added a commit to SelHel/Python_Testing that referenced this issue Jun 10, 2022
SelHel added a commit to SelHel/Python_Testing that referenced this issue Jun 10, 2022
jogubo pushed a commit to jogubo/oc-python-testing that referenced this issue Jun 13, 2022
SelHel added a commit to SelHel/Python_Testing that referenced this issue Jun 14, 2022
jogubo pushed a commit to jogubo/oc-python-testing that referenced this issue Jun 14, 2022
Deadjuju added a commit to Deadjuju/P11_OC_Python_Testing that referenced this issue Jul 11, 2022
A club can no longer spend more points than it has

Issue OpenClassrooms-Student-Center#2
selaouni added a commit to selaouni/Projet11 that referenced this issue Dec 8, 2022
Bimarsto added a commit to Bimarsto/Python_Testing that referenced this issue Jan 20, 2023
Issue OpenClassrooms-Student-Center#2 fixed + tests created
VisualDev-FR added a commit to VisualDev-FR/openclassrooms-P11 that referenced this issue Mar 31, 2023
VisualDev-FR added a commit to VisualDev-FR/openclassrooms-P11 that referenced this issue Apr 21, 2023
JLenseele added a commit to JLenseele/Project_11 that referenced this issue Apr 26, 2023
…put places / purchasePlaces-add club substration points
Nemesix493 added a commit to Nemesix493/P11_Python_Testing that referenced this issue May 9, 2023
kivtorsm added a commit to kivtorsm/OCP11 that referenced this issue Jun 21, 2023
kivtorsm added a commit to kivtorsm/OCP11 that referenced this issue Jun 22, 2023
CeeG33 referenced this issue in CeeG33/oc-cg-p11 Sep 11, 2023
CeeG33 referenced this issue in CeeG33/oc-cg-p11 Sep 11, 2023
Thomas-Savelli added a commit to Thomas-Savelli/Python_Testing that referenced this issue Nov 28, 2023
…ed the bug by introducing conditional checks and appropriate flash messages. Fixes OpenClassrooms-Student-Center#2.
DomninBenoit added a commit to DomninBenoit/gudlift that referenced this issue Dec 11, 2023
ErnestoAquino added a commit to ErnestoAquino/Python_Testing that referenced this issue Dec 29, 2023
AlexBotswana added a commit to AlexBotswana/Python_Testing that referenced this issue Feb 20, 2024
geo1310 added a commit to geo1310/Python_Testing that referenced this issue Apr 16, 2024
Mamath79 added a commit to Mamath79/OC_P11_Ameliorez-une-application-Web-Python-par-des-tests-et-du-d-bogage that referenced this issue Jan 7, 2025
Mamath79 added a commit to Mamath79/OC_P11_Ameliorez-une-application-Web-Python-par-des-tests-et-du-d-bogage that referenced this issue Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant