src/neptune_scale/api/__pycache__/attribute.cpython-39.pyc#L288
279 'a/b/c'
280 >>> cleanup_path('a/b/c/')
281 Traceback (most recent call last):
282 ...
283 ValueError: Invalid path: `a/b/c/`. Path must not end with a slash.
284 >>> cleanup_path('a//b/c')
285 Traceback (most recent call last):
286 ...
287 ValueError: Invalid path: `a//b/c`. Path components must not be empty.
288 >>> cleanup_path('a/ /b/c')
Differences (unified diff with -expected +actual):
@@ -1,3 +1,8 @@
Traceback (most recent call last):
-...
-ValueError: Invalid path: `a/ /b/c`. Path components must not be empty.
+ File "/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/doctest.py", line 1334, in __run
+ exec(compile(example.source, filename, "single",
+ File "<doctest neptune_scale.api.attribute.cleanup_path[3]>", line 1, in <module>
+ cleanup_path('a/ /b/c')
+ File "/home/runner/work/neptune-client-scale/neptune-client-scale/src/neptune_scale/api/attribute.py", line 306, in cleanup_path
+ raise ValueError(f"Invalid path: `{path}`. Path components cannot contain leading or trailing whitespace.")
+ValueError: Invalid path: `a/ /b/c`. Path components cannot contain leading or trailing whitespace.
/home/runner/work/neptune-client-scale/neptune-client-scale/src/neptune_scale/api/attribute.py:288: DocTestFailure
Show more
Show less
Run tests
Process completed with exit code 1.
Show more
Show less