def test_load_save_yml(tmp_path): m = Executor.load_config(y) m.save_config(os.path.join(tmp_path, 'a.yml')) assert m.bar == 'hello' assert m.bar2 == 1 assert m.metas.name == 'my-awesomeness' for k in ('/default', '/foo_endpoint', '/random_endpoint'): assert k in m.requests
def test_executor_import_with_external_dependencies(capsys): ex = Executor.load_config('../hubble-executor/config.yml') assert ex.bar == 123 ex.foo() out, err = capsys.readouterr() assert 'hello' in out