def METHOD_NAME(create_engine_mock):
    execute_mock = (
        create_engine_mock.return_value.connect.return_value.__enter__.return_value.execute
    )
    execute_mock.return_value = [{"datname": "db1"}, {"datname": "db2"}]
    config = PostgresConfig.parse_obj({**_base_config(), "initial_database": "db0"})
    source = PostgresSource(config, PipelineContext(run_id="test"))
    _ = list(source.get_inspectors())
    assert create_engine_mock.call_count == 3
    assert create_engine_mock.call_args_list[0][0][0].endswith("db0")
    assert create_engine_mock.call_args_list[1][0][0].endswith("db1")
    assert create_engine_mock.call_args_list[2][0][0].endswith("db2")