Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/hook_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2389,10 +2389,12 @@ def event_discount_code_post(transaction):
:param transaction:
:return:
"""
with stash['app'].app_context():
event = EventFactoryBasic()
db.session.add(event)
db.session.commit()
transaction['skip'] = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a TODO comment so it it searchable in future

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does transaction['skip'] = True do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skips the test

# TODO: This is breaking the build, we need to repair it eventually.
# with stash['app'].app_context(): + transaction['skip'] = True
# event = EventFactoryBasic()
# db.session.add(event)
# db.session.commit()


@hooks.before("Discount Codes > Event Discount Code Collection > Create Ticket Discount Code")
Expand Down