Skip to content

Commit 656b3a0

Browse files
committed
Remove Test for now impossible duplicated user
1 parent a81aa3a commit 656b3a0

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/lib/test_authentication.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,6 @@ async def test_get_current_user_nonexistent_user(session, setup_lib_db, with_ema
112112
session.commit()
113113

114114

115-
@pytest.mark.asyncio
116-
async def test_get_current_user_user_exists_twice(session, setup_lib_db):
117-
session.add(User(**TEST_USER))
118-
session.commit()
119-
120-
with pytest.raises(MultipleResultsFound) as exc_info:
121-
await get_current_user(None, TEST_USER_DECODED_JWT, session, None)
122-
assert "Multiple rows were found when one or none was required" in str(exc_info.value)
123-
124-
# Some lingering db transaction holds this test open unless it is explicitly closed.
125-
session.commit()
126-
127-
128115
@pytest.mark.asyncio
129116
async def test_get_current_user_user_is_inactive(session, setup_lib_db):
130117
mark_user_inactive(session, TEST_USER["username"])

0 commit comments

Comments
 (0)