MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / test_tree_find_and_replace_nested_content

Function test_tree_find_and_replace_nested_content

lib/cli/tests/test_utils.py:53–56  ·  view source on GitHub ↗
(temp_tree)

Source from the content-addressed store, hash-verified

51
52
53def test_tree_find_and_replace_nested_content(temp_tree):
54 utils.tree_find_and_replace(temp_tree, "Nested", "Updated")
55 with open(os.path.join(temp_tree, "nested_dir", "nested_file.txt"), "r") as f:
56 assert f.read() == "Updated content"
57
58
59def test_tree_find_and_replace_no_matches(temp_tree):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected