def test_api_hint_post_admin():
    """Can the users post /api/v1/hints if admin"""
    app = create_ctfd()
    with app.app_context():
        gen_challenge(app.db)
        with login_as_user(app, name="admin") as client:
            r = client.post(
                "/api/v1/hints", json={"content": "hint", "cost": "1", "challenge": 1}
            )
            assert r.status_code == 200
            assert Hints.query.count() == 1
    destroy_ctfd(app)
Can the users post /api/v1/hints if admin
tests/api/v1/test_hints.py