jebin2 commited on
Commit
b22652d
·
1 Parent(s): b54a58a
Files changed (1) hide show
  1. tests/test_credit_service.py +2 -2
tests/test_credit_service.py CHANGED
@@ -358,7 +358,7 @@ class TestCreditsRouter:
358
  response = client.get("/credits/balance")
359
 
360
  # Should fail without auth
361
- assert response.status_code in [401, 403, 422, 500]
362
 
363
  def test_get_balance_returns_user_credits(self):
364
  """GET /credits/balance returns user's credit balance."""
@@ -401,7 +401,7 @@ class TestCreditsRouter:
401
  response = client.get("/credits/history")
402
 
403
  # Should fail without auth
404
- assert response.status_code in [401, 403, 422, 500]
405
 
406
  def test_get_history_returns_paginated_jobs(self):
407
  """GET /credits/history returns paginated job list."""
 
358
  response = client.get("/credits/balance")
359
 
360
  # Should fail without auth
361
+ assert response.status_code == 500 # Attribute Error - no middleware
362
 
363
  def test_get_balance_returns_user_credits(self):
364
  """GET /credits/balance returns user's credit balance."""
 
401
  response = client.get("/credits/history")
402
 
403
  # Should fail without auth
404
+ assert response.status_code == 500 # Attribute Error - no middleware
405
 
406
  def test_get_history_returns_paginated_jobs(self):
407
  """GET /credits/history returns paginated job list."""