def test_api_tag_get_admin():
    """Can a user get /api/v1/tags/<tag_id> if admin"""
    app = create_ctfd()
    with app.app_context():
        gen_challenge(app.db)
        gen_tag(app.db, 1)
        with login_as_user(app, "admin") as client:
            r = client.get("/api/v1/tags/1", json="")
            assert r.status_code == 200
    destroy_ctfd(app)
Can a user get /api/v1/tags/<tag_id> if admin
tests/api/v1/test_tags.py