Skip to content

Commit

Permalink
Fix db lock in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rth committed Mar 1, 2024
1 parent 64af106 commit 30be948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ramp-database/ramp_database/tools/tests/test_leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def session_toy_function(database_connection):
Model.metadata.drop_all(db)


def test_get_leaderboard(session_toy_db):
def test_get_leaderboard(session_toy_function):
"""this test assumes that all the submissions in the database are 'new'"""
session_toy_db = session_toy_function

leaderboard_new = get_leaderboard(session_toy_db, "new", "iris_test")
assert leaderboard_new.count("<tr>") == 6
leaderboard_new = get_leaderboard(session_toy_db, "new", "iris_test", "test_user")
Expand Down

0 comments on commit 30be948

Please sign in to comment.