Skip to content

Commit

Permalink
tests: add adhoc test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHaussmann committed Feb 12, 2024
1 parent 0e0fe09 commit f6db71f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spil_hamlet_conf/hamlet_tests/adhoc_tests/sid_from_path_missing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""
This doctest from Sid turned out to not work,
because user configuration (~/.spil) contained a different default path,
after a test set it to "server" instead of "local", the factory default.
"""

from pathlib import Path
from spil import conf, Sid
from spil import log
from resolva import utils as rut

rut.log.setLevel(10)

log.setLevel(10)

path = Path(conf.default_sid_conf_data_path) / "testing/SPIL_PROJECTS/LOCAL/PROJECTS/HAMLET/PROD/ASSETS/char/ophelia/model/v001/char_ophelia_model_WORK_v001.ma"
print(path)
s = Sid(path=path) # path (default config) # TODO: any config

print(s.uri)
# Sid('asset__file:hamlet/a/char/ophelia/model/v001/w/ma')

0 comments on commit f6db71f

Please sign in to comment.