mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Working tests, hopefully all code changes done.
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
from app.models import User
|
||||
from flask import url_for
|
||||
|
||||
|
||||
def test_should_show_recent_jobs_on_dashboard(app_,
|
||||
db_,
|
||||
db_session,
|
||||
mock_api_user,
|
||||
api_user_active,
|
||||
mock_get_service,
|
||||
mock_user_loader,
|
||||
mock_user_dao_get_by_email):
|
||||
mock_user_dao_get_by_email,
|
||||
mock_login):
|
||||
with app_.test_request_context():
|
||||
with app_.test_client() as client:
|
||||
client.login(mock_api_user)
|
||||
client.login(api_user_active)
|
||||
response = client.get(url_for('main.service_dashboard', service_id=123))
|
||||
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user