docstr: CSS Template API: Test delete
docstr_tok: ["CSS","Template","API",":","Test","delete"]
code: def test_delete_css_template(self):
      """
      CSS Template API: Test delete
      """
      css_template = (
          db.session.query(CssTemplate)
          .filter(CssTemplate.template_name == "template_name1")
          .one_or_none()
      )
  
      self.login(username="admin")
      uri = f"api/v1/css_template/{css_template.id}"
      rv = self.delete_assert_metric(uri, "delete")
      assert rv.status_code == 200
  
      model = db.session.query(CssTemplate).get(css_template.id)
      assert model is None
  
imports: import json
  import pytest
  import prison
  from datetime import datetime
  from freezegun import freeze_time
  from sqlalchemy.sql import func
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.core import CssTemplate
  from superset.utils.database import get_example_database
  from tests.integration_tests.base_tests import SupersetTestCase
label_desc: Use image node_id 13 for calling the TestCssTemplateApi obj's underlying member method code with example usage: obj.test_delete_css_template() without return types