class_docstr: Testing export import functionality for dashboards
class_docstr_tok: ["Testing","export","import","functionality","for","dashboards"]
code: def test_import_table_no_metadata(self):
      table, dict_table = self.create_table(
          "pure_table", id=ID_PREFIX + 1
      )
      new_table = SqlaTable.import_from_dict(db.session, dict_table)
      db.session.commit()
      imported_id = new_table.id
      imported = self.get_table_by_id(imported_id)
      self.assert_table_equals(table, imported)
      self.yaml_compare(
          table.export_to_dict(), imported.export_to_dict()
      )
  
imports: import json
  import unittest
  from uuid import uuid4
  import yaml
  from tests.integration_tests.test_app import app
  from superset import db
  from superset.connectors.sqla.models import SqlaTable, SqlMetric, TableColumn
  from superset.utils.database import get_example_database
  from superset.utils.dict_import_export import export_to_dict
  from .base_tests import SupersetTestCase
label_desc: Use image node_id 8 for calling the TestDictImportExport obj's underlying member method code with example usage: obj.test_import_table_no_metadata() without return types