Skip to content

Commit 2c59259

Browse files
prabhupantdr0pdb
authored andcommitted
test: fix session test (#5482)
1 parent 64d2b8d commit 2c59259

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/hook_main.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,12 +1024,8 @@ def session_post(transaction):
10241024
:return:
10251025
"""
10261026
with stash['app'].app_context():
1027-
event = EventFactoryBasic()
1028-
db.session.add(event)
1029-
db.session.commit()
1030-
1031-
track = TrackFactory()
1032-
db.session.add(track)
1027+
session = SessionFactory()
1028+
db.session.add(session)
10331029
db.session.commit()
10341030

10351031

0 commit comments

Comments
 (0)