test: fix text scripts

This commit is contained in:
Ibis Prevedello 2023-04-12 00:48:34 -03:00 • committed by Gabriel Luiz Freitas Almeida
commit 37925c275f
2 changed files with 3 additions and 3 deletions

View file

@ -206,7 +206,7 @@
"type": "JsonSpec",
"node": {
"template": {
"dict_": {
"path": {
"required": true,
"placeholder": "",
"show": true,
@ -218,7 +218,7 @@
".yml"
],
"password": false,
"name": "dict_",
"name": "path",
"type": "file",
"list": false,
"fileTypes": [

View file

@ -49,7 +49,7 @@ def test_cache_creation(basic_data_graph):
)
save_cache(computed_hash, langchain_object, is_first_message)
# Check if the cache file exists
cache_file = Path(tempfile.gettempdir()) / f"{PREFIX}_{computed_hash}.dill"
cache_file = Path(tempfile.gettempdir()) / f"{PREFIX}/{computed_hash}.dill"
assert cache_file.exists()