def test_get_labeled_query_tree_pattern(): tree = path.get_labeled_query_tree(APP_PATH, ["testtrain.*\.txt"]) # noqa: W605 for domain in DOMAINS: for intent in tree[domain]: for key in tree[domain][intent].keys(): assert os.path.basename(key) == "testtrain123.txt" assert set(tree.keys()) == DOMAINS assert set(tree[DOMAIN_NAME].keys()) == INTENTS
def test_get_labeled_query_tree(): tree = path.get_labeled_query_tree(APP_PATH) assert set(tree.keys()) == DOMAINS assert set(tree[DOMAIN_NAME].keys()) == INTENTS