docstr: DB Eng Specs (postgres): Test get table names
docstr_tok: ["DB","Eng","Specs","(","postgres",")",":","Test","get","table","names"]
code: def test_get_table_names(self):
      """
      DB Eng Specs (postgres): Test get table names
      """
  
      """ Make sure postgres doesn't try to remove schema name from table name
          ie. when try_remove_schema_from_table_name == False. """
      inspector = mock.Mock()
      inspector.get_table_names = mock.Mock(
          return_value=["schema.table", "table_2"]
      )
      inspector.get_foreign_table_names = mock.Mock(
          return_value=["table_3"]
      )
  
      pg_result_expected = {"schema.table", "table_2", "table_3"}
      pg_result = PostgresEngineSpec.get_table_names(
          database=mock.ANY, schema="schema", inspector=inspector
      )
      assert pg_result_expected == pg_result
  
imports: from textwrap import dedent
  from unittest import mock
  from flask.ctx import AppContext
  from sqlalchemy import column, literal_column
  from sqlalchemy.dialects import postgresql
  from superset.db_engine_specs import load_engine_specs
  from superset.db_engine_specs.postgres import PostgresEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.models.sql_lab import Query
  from superset.utils.database import get_example_database
  from tests.integration_tests.db_engine_specs.base_tests import TestDbEngineSpec
  from tests.integration_tests.fixtures.certificates import ssl_certificate
  from tests.integration_tests.fixtures.database import default_db_extra
label_desc: Use image node_id 1 for calling the TestPostgresDbEngineSpec obj's underlying member method code with example usage: obj.test_get_table_names() without return types