Fix test failures
This commit is contained in:
parent
01f734bd8c
commit
0a41f684d0
|
@ -27,15 +27,15 @@ def test_assignment():
|
|||
db.session.commit()
|
||||
assert set(ticket.assigned_users) == {assignee1, assignee2}
|
||||
|
||||
unassign(ticket, assignee1)
|
||||
unassign(ticket, assignee1, assigner)
|
||||
db.session.commit()
|
||||
assert set(ticket.assigned_users) == {assignee2}
|
||||
|
||||
# Unassignment is also idempotent
|
||||
unassign(ticket, assignee1)
|
||||
unassign(ticket, assignee1, assigner)
|
||||
db.session.commit()
|
||||
assert set(ticket.assigned_users) == {assignee2}
|
||||
|
||||
unassign(ticket, assignee2)
|
||||
unassign(ticket, assignee2, assigner)
|
||||
db.session.commit()
|
||||
assert ticket.assigned_users == []
|
||||
|
|
|
@ -2,8 +2,7 @@ from srht.database import Base
|
|||
from srht.oauth import ExternalUserMixin
|
||||
|
||||
class User(Base, ExternalUserMixin):
|
||||
def __init__(*args, **kwargs):
|
||||
ExternalUserMixin.__init__(*args, **kwargs)
|
||||
pass
|
||||
|
||||
from todosrht.types.ticketaccess import TicketAccess
|
||||
from todosrht.types.ticketstatus import TicketStatus, TicketResolution
|
||||
|
|
Loading…
Reference in New Issue