Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAlbertQC committed Jul 12, 2024
1 parent b3b8d28 commit b3a120f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quetz/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ def test_set_user_roles_user_has_role(
current_role: str,
default_role: str | None,
):
# Arrange: The user has `current_role` before we call the CLI
# Arrange: Assign `current_role` to the user before we call the CLI
with session_maker_expire_on_commit() as db:
user = db.query(User).filter(User.username == "bartosz").one_or_none()
user.role = current_role
assert user.role == current_role
db.commit()

# Act: Call the CLI
Expand Down

0 comments on commit b3a120f

Please sign in to comment.