Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
remove tests - not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sc15zs committed May 3, 2024
1 parent 9aa7b82 commit af6c5c7
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit af6c5c7

Please sign in to comment.