feat: consolidate ticket domain baseline
This commit is contained in:
@@ -19,9 +19,9 @@ def test_anonymous_ticket_list_is_denied(client, db):
|
||||
assert response.status_code == 401
|
||||
|
||||
|
||||
def test_user_with_ticket_view_can_list_tickets(client, db):
|
||||
def test_support_user_with_ticket_view_can_list_tickets(client, db):
|
||||
Ticket.objects.create(ticket_no="TK202607010001", title="A", description="A")
|
||||
client.force_login(user_with_role("普通建单人"))
|
||||
client.force_login(user_with_role("技术支持"))
|
||||
|
||||
response = client.get("/api/tickets")
|
||||
|
||||
@@ -42,7 +42,7 @@ def test_user_without_ticket_create_cannot_create_ticket(client, db):
|
||||
|
||||
|
||||
def test_user_with_solution_view_can_list_solutions(client, db):
|
||||
client.force_login(user_with_role("普通建单人"))
|
||||
client.force_login(user_with_role("技术支持"))
|
||||
|
||||
response = client.get("/api/solutions")
|
||||
|
||||
@@ -57,7 +57,7 @@ def test_audit_log_requires_audit_permission(client, db):
|
||||
target_id="health",
|
||||
result="success",
|
||||
)
|
||||
client.force_login(user_with_role("普通建单人"))
|
||||
client.force_login(user_with_role("技术支持"))
|
||||
|
||||
denied = client.get("/api/audit/operation-logs")
|
||||
assert denied.status_code == 403
|
||||
|
||||
Reference in New Issue
Block a user