Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

307 B
Raw Blame
id: no-new-session-mock
language: python
rule:
  any:
    - pattern: $SESSION = MagicMock($$$ARGS)
    - pattern: $SESSION = Mock($$$ARGS)
constraints:
  SESSION:
    regex: ^(session|db_session|mock_session|read_session|write_session)$
message: net-new session mock assignment in test code
severity: error