Created At: 2026-11-18T07:53:14Z Completed At: 2026-11-18T07:53:19Z Command exited with code 1. Command output: ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-9.2.0, pluggy-1.7.0 -- /root/telegram-saas/.venv/bin/python3 cachedir: .pytest_cache rootdir: /root/telegram-saas configfile: pyproject.toml plugins: anyio-4.16.0, asyncio-1.5.0 asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collecting ... collected 1 item tests/integration/test_celery_telegram_tasks.py::test_celery_telegram_update_task_execution FAILED [100%] =================================== FAILURES =================================== __________________ test_celery_telegram_update_task_execution __________________ db_session = @pytest.mark.asyncio async def test_celery_telegram_update_task_execution(db_session: AsyncSession): # 1. Create Tenant tenant_id = uuid.uuid4() > tenant = Tenant( id=tenant_id, name="Celery Task Tenant", slug=f"celery-tenant-{uuid.uuid4().hex[:6]}", status="active", plan="enterprise", ) tests/integration/test_celery_telegram_tasks.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :4: in __init__ return new_state._initialize_instance(self, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .venv/lib/python3.12/site-packages/sqlalchemy/orm/state.py:597: in _initialize_instance with util.safe_reraise(): .venv/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py:166: in __exit__ raise exc_value.with_traceback(exc_tb) .venv/lib/python3.12/site-packages/sqlalchemy/orm/state.py:595: in _initialize_instance manager.original_init(*mixed[1:], **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = kwargs = {'id': UUID('12559c63-a3df-406b-9690-04c52d06a512'), 'name': 'Celery Task Tenant', 'slug': 'celery-tenant-03f69e', 'status': 'active', ...} def _declarative_constructor(self: Any, **kwargs: Any) -> None: """A simple constructor that allows initialization from kwargs. Sets attributes on the constructed instance using the names and values in ``kwargs``. Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships. """ cls_ = type(self) for k in kwargs: if not hasattr(cls_, k): > raise TypeError( "%r is an invalid keyword argument for %s" % (k, cls_.__name__) ) E TypeError: 'plan' is an invalid keyword argument for Tenant .venv/lib/python3.12/site-packages/sqlalchemy/orm/decl_base.py:2361: TypeError =========================== short test summary info ============================ FAILED tests/integration/test_celery_telegram_tasks.py::test_celery_telegram_update_task_execution ============================== 1 failed in 0.65s ===============================