mirror of https://gitlab.com/litecord/litecord.git
test_embeds: assert path_exists for simple case
This commit is contained in:
parent
d8a24ad052
commit
6e81b8d5fb
|
|
@ -87,4 +87,5 @@ def test_fields():
|
||||||
def test_path_exists():
|
def test_path_exists():
|
||||||
"""Test the path_exists() function for embed sanitization."""
|
"""Test the path_exists() function for embed sanitization."""
|
||||||
assert path_exists({"a": {"b": 2}}, "a.b")
|
assert path_exists({"a": {"b": 2}}, "a.b")
|
||||||
|
assert path_exists({"a": "b"}, "a")
|
||||||
assert not path_exists({"a": "b"}, "a.b")
|
assert not path_exists({"a": "b"}, "a.b")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue