mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-27 21:05:34 +00:00
fix lint issues
This commit is contained in:
@@ -25,7 +25,10 @@ from openjarvis.tools._stubs import ToolSpec
|
||||
|
||||
_SLACK_API_BASE = "https://slack.com/api"
|
||||
_SLACK_AUTH_ENDPOINT = "https://slack.com/oauth/v2/authorize"
|
||||
_SLACK_SCOPES = "channels:read,channels:history,groups:read,groups:history,im:read,im:history,mpim:read,mpim:history,users:read"
|
||||
_SLACK_SCOPES = (
|
||||
"channels:read,channels:history,groups:read,groups:history,"
|
||||
"im:read,im:history,mpim:read,mpim:history,users:read"
|
||||
)
|
||||
_DEFAULT_CREDENTIALS_PATH = str(DEFAULT_CONFIG_DIR / "connectors" / "slack.json")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -226,7 +226,8 @@ class TestChannelToolLoading:
|
||||
assert system.tools[0].spec.name == "fake"
|
||||
|
||||
def test_non_tool_agent_receives_empty_tools(self, tmp_path):
|
||||
"""JarvisSystem with no tools list results in empty tools — simple agent unaffected."""
|
||||
"""JarvisSystem with no tools list results in empty tools — simple agent
|
||||
unaffected."""
|
||||
config = JarvisConfig()
|
||||
config.sessions.db_path = str(tmp_path / "sessions.db")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user