diff --git a/tests/test_routes.py b/tests/test_routes.py index c8c9998..0947b04 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -428,35 +428,3 @@ def test_http_error_unknown_redirects(flask_test_client): # generic error template should be rendered assert b"Sorry, there is a problem with the service" in response.data assert b"Try again later." in response.data - - -@pytest.fixture -def test_client_with_metadata(flask_test_client): - flask_test_client.account_id = "0000-1111-2222-3333-44444" - flask_test_client.email = "flask_test_client@levellingup.gov.uk" - return flask_test_client - - -# def test_user_metadata_passed_to_backend( -# test_client_with_metadata, flask_test_client, example_pre_ingest_data_file, mocker, requests_mock -# ): -# mocker.patch.object(TOWNS_FUND_APP_CONFIG, "active", True) # PATHFINDERS_APP_CONFIG -# send_confirmation_emails = mocker.patch("app.main.routes.send_confirmation_emails") -# requests_mock.post( -# "http://data-store/ingest", -# json={ -# "detail": "Spreadsheet successfully uploaded", -# "status": 200, -# "title": "success", -# "loaded": True, -# # "submitting_account_id": test_client_with_metadata.account_id, -# # "submitting_user_email": test_client_with_metadata.email -# }, -# status_code=200, -# ) - -# response = test_client_with_metadata.post( -# f"/upload/{TEST_FUND_CODE}/{TEST_ROUND}", data={"ingest_spreadsheet": example_pre_ingest_data_file} -# ) - -# assert response.status_code == 200