Skip to content

Commit

Permalink
Travis errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekj117 committed Jul 19, 2019
1 parent f85ed5f commit 887ed48
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/hook_main.py
Expand Up @@ -2804,15 +2804,11 @@ def discount_delete(transaction):
@hooks.before("Discount Codes > Get Discount Code Detail using the code > Get Discount Code Detail")
def discount_code_get_detail_using_code(transaction):
"""
GET /discount-codes/DC101
GET event_id/1/discount-code/DC101
:param transaction:
:return:
"""
with stash['app'].app_context():
event = EventFactoryBasic()
db.session.add(event)
db.session.commit()

discount_code = DiscountCodeFactory(event_id=1)
discount_code.code = 'DC101'
db.session.add(discount_code)
Expand Down

0 comments on commit 887ed48

Please sign in to comment.