MCPcopy
hub / github.com/apache/caldera / test_replace_app_props

Function test_replace_app_props

tests/utility/test_base_object.py:24–29  ·  view source on GitHub ↗
(base_world)

Source from the content-addressed store, hash-verified

22
23
24def test_replace_app_props(base_world):
25 base_object = BaseObject()
26 command = 'echo #{foo} #{app.foo} #{app.bar} #{app.foo.do.not.replace.me}'
27 replaced = base_object.replace_app_props(BaseWorld.encode_string(command))
28 expected = 'echo #{foo} foo bar #{app.foo.do.not.replace.me}'
29 assert expected == BaseWorld.decode_bytes(replaced)
30
31
32def test_is_global_variable_identifies_variable_starting_with_app(base_world):

Callers

nothing calls this directly

Calls 4

replace_app_propsMethod · 0.95
BaseObjectClass · 0.90
encode_stringMethod · 0.80
decode_bytesMethod · 0.80

Tested by

no test coverage detected