def test_user_get_public_fails():
    """Can a registered user load /api/v1/users/2/fails"""
    app = create_ctfd()
    with app.app_context():
        register_user(app)
        client = login_as_user(app)
        r = client.get("/api/v1/users/2/fails")
        assert r.status_code == 200
    destroy_ctfd(app)
Can a registered user load /api/v1/users/2/fails
tests/users/test_submissions.py