aboutsummaryrefslogtreecommitdiff
path: root/tests/grliq/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grliq/test_utils.py')
-rw-r--r--tests/grliq/test_utils.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/grliq/test_utils.py b/tests/grliq/test_utils.py
new file mode 100644
index 0000000..d9034d5
--- /dev/null
+++ b/tests/grliq/test_utils.py
@@ -0,0 +1,17 @@
+from pathlib import Path
+from uuid import uuid4
+
+
+class TestUtils:
+
+ def test_get_screenshot_fp(self, mnt_grliq_archive_dir, utc_hour_ago):
+ from generalresearch.grliq.utils import get_screenshot_fp
+
+ fp1 = get_screenshot_fp(
+ created_at=utc_hour_ago,
+ forensic_uuid=uuid4(),
+ grliq_archive_dir=mnt_grliq_archive_dir,
+ create_dir_if_not_exists=True,
+ )
+
+ assert isinstance(fp1, Path)