test: fix text scripts
This commit is contained in:
parent
c69e5a72f0
commit
37925c275f
2 changed files with 3 additions and 3 deletions
|
|
@ -206,7 +206,7 @@
|
||||||
"type": "JsonSpec",
|
"type": "JsonSpec",
|
||||||
"node": {
|
"node": {
|
||||||
"template": {
|
"template": {
|
||||||
"dict_": {
|
"path": {
|
||||||
"required": true,
|
"required": true,
|
||||||
"placeholder": "",
|
"placeholder": "",
|
||||||
"show": true,
|
"show": true,
|
||||||
|
|
@ -218,7 +218,7 @@
|
||||||
".yml"
|
".yml"
|
||||||
],
|
],
|
||||||
"password": false,
|
"password": false,
|
||||||
"name": "dict_",
|
"name": "path",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"list": false,
|
"list": false,
|
||||||
"fileTypes": [
|
"fileTypes": [
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ def test_cache_creation(basic_data_graph):
|
||||||
)
|
)
|
||||||
save_cache(computed_hash, langchain_object, is_first_message)
|
save_cache(computed_hash, langchain_object, is_first_message)
|
||||||
# Check if the cache file exists
|
# 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()
|
assert cache_file.exists()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue