Created At: 2026-11-18T09:27:57Z Completed At: 2026-11-18T09:28:04Z 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 6 items tests/unit/test_security_audit.py::test_secure_filename_and_path_traversal_neutralization PASSED [ 16%] tests/unit/test_security_audit.py::test_validate_file_content_magic_bytes_and_extensions PASSED [ 33%] tests/unit/test_security_audit.py::test_safe_template_rendering_zero_ssti_and_eval PASSED [ 50%] tests/unit/test_security_audit.py::test_in_app_rate_limiter_sliding_window PASSED [ 66%] tests/unit/test_security_audit.py::test_sql_injection_defense_via_parameterized_queries PASSED [ 83%] tests/unit/test_security_audit.py::test_audit_service_action_logging FAILED [100%] =================================== FAILURES =================================== ______________________ test_audit_service_action_logging _______________________ db_session = @pytest.mark.asyncio async def test_audit_service_action_logging(db_session: AsyncSession): > tenant = Tenant( name="Security Audit Tenant", slug=f"audit-tenant-{uuid.uuid4().hex[:8]}", is_active=True, ) tests/unit/test_security_audit.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :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 = {'name': 'Security Audit Tenant', 'slug': 'audit-tenant-2c0dc77f', 'is_active': True} 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: 'is_active' is an invalid keyword argument for Tenant .venv/lib/python3.12/site-packages/sqlalchemy/orm/decl_base.py:2361: TypeError =============================== warnings summary =============================== tests/unit/test_security_audit.py:15 /root/telegram-saas/tests/unit/test_security_audit.py:15: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.unit tests/unit/test_security_audit.py:25 /root/telegram-saas/tests/unit/test_security_audit.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.unit tests/unit/test_security_audit.py:50 /root/telegram-saas/tests/unit/test_security_audit.py:50: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.unit tests/unit/test_security_audit.py:72 /root/telegram-saas/tests/unit/test_security_audit.py:72: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.unit -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/unit/test_security_audit.py::test_audit_service_action_logging =================== 1 failed, 5 passed, 4 warnings in 0.31s ====================