Skip to content

Commit

Permalink
fix: Filter & from tag name (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade authored Dec 7, 2024
1 parent cbb148b commit b81b701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/composio/utils/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def get_enum_key(name: str) -> str:
characters_to_replace = [" ", "-", "/", "(", ")", "\\", ":", '"', "'", "."]
characters_to_replace = [" ", "-", "/", "(", ")", "\\", ":", '"', "'", ".", "&"]
for char in characters_to_replace:
name = name.replace(char, "_")
return name.upper()
8 changes: 3 additions & 5 deletions python/tests/test_tools/test_toolset.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ def test_uninitialize_app() -> None:
with pytest.raises(
ComposioSDKError,
match=(
"No connected account found for app `linear`; "
"Run `composio add linear` to fix this"
"No connected account found for app `attio`; "
"Run `composio add attio` to fix this"
),
):
ComposioToolSet().get_action_schemas(
actions=[Action.LINEAR_CREATE_LINEAR_ISSUE]
)
ComposioToolSet().get_action_schemas(actions=[Action.ATTIO_UPDATE_A_LIST])


class TestValidateTools:
Expand Down

0 comments on commit b81b701

Please sign in to comment.