MCPcopy Create free account
hub / github.com/celery/celery / test_table_name_config

Method test_table_name_config

t/unit/backends/test_database.py:490–497  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

488 assert tb.taskset_cls.__table__.c.id.default.schema == 'bar'
489
490 def test_table_name_config(self):
491 self.app.conf.database_table_names = {
492 'task': 'foo',
493 'group': 'bar',
494 }
495 tb = DatabaseBackend(self.uri, app=self.app)
496 assert tb.task_cls.__table__.name == 'foo'
497 assert tb.taskset_cls.__table__.name == 'bar'
498
499 def test_table_creation_at_setup_config(self):
500 from sqlalchemy import inspect

Callers

nothing calls this directly

Calls 1

DatabaseBackendClass · 0.90

Tested by

no test coverage detected