From 887ed480c158a5a528f511fb3b052446321db29c Mon Sep 17 00:00:00 2001 From: prateekj117 Date: Fri, 19 Jul 2019 14:52:42 +0530 Subject: [PATCH] Travis errors. --- tests/hook_main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/hook_main.py b/tests/hook_main.py index 0acbb518d4..870d312498 100644 --- a/tests/hook_main.py +++ b/tests/hook_main.py @@ -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)