def METHOD_NAME(endpoint: str, method: str = "GET"):
    def test_auth(test_client: flask.testing.FlaskClient):
        with mock_server_settings({ServerSettingsVar.SEMATIC_AUTHENTICATE: "true"}):
            response = getattr(test_client, method.lower())(endpoint)
            assert response.status_code == HTTPStatus.UNAUTHORIZED
    return test_auth