def test_api_tags_post_admin():
    """Can a user post /api/v1/tags 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/tags", json={"value": "tag", "challenge": 1})
            assert r.status_code == 200
    destroy_ctfd(app)
Can a user post /api/v1/tags if admin
tests/api/v1/test_tags.py