summaryrefslogtreecommitdiffstats
path: root/test/test_loaders.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_loaders.py')
-rw-r--r--test/test_loaders.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_loaders.py b/test/test_loaders.py
new file mode 100644
index 0000000..7a91a4c
--- /dev/null
+++ b/test/test_loaders.py
@@ -0,0 +1,9 @@
+"""Test for ansible_compat.loaders module."""
+from pathlib import Path
+
+from ansible_compat.loaders import colpath_from_path
+
+
+def test_colpath_from_path() -> None:
+ """Test colpath_from_path non existing path."""
+ assert colpath_from_path(Path("/foo/bar/")) is None