-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: Discount code quantity calculation #6878
Conversation
|
||
db.session.commit() | ||
|
||
# Attendees associated with the order without discount code should not be counted |
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.
line too long (93 > 90 characters)
discount_code = DiscountCodeTicketFactory(tickets_number=5) | ||
discount_code.tickets.append(ticket) | ||
|
||
order_without_discount = OrderFactory(status='completed') |
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.
Black would make changes.
from app.factories.discount_code import DiscountCodeTicketFactory | ||
from app.models import db | ||
|
||
from app.models.discount_code import DiscountCode |
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.
'app.models.discount_code.DiscountCode' imported but unused
@@ -0,0 +1,53 @@ | |||
from app.api.helpers.ticketing import TicketingManager | |||
from app.factories.attendee import AttendeeFactory, AttendeeFactoryBase |
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.
'app.factories.attendee.AttendeeFactory' imported but unused
Codecov Report
@@ Coverage Diff @@
## development #6878 +/- ##
===============================================
+ Coverage 66.21% 66.34% +0.13%
===============================================
Files 307 308 +1
Lines 15298 15330 +32
===============================================
+ Hits 10129 10171 +42
+ Misses 5169 5159 -10
Continue to review full report at Codecov.
|
Here is an overview of what got changed by this pull request: Complexity increasing per file
==============================
- tests/all/integration/api/helpers/test_ticketing.py 2
See the complete overview on Codacy |
Fixes #6879