aboutsummaryrefslogtreecommitdiff
path: root/tests/grliq/test_utils.py
blob: 7f794e80cebe61ae7951d2246317e16fce6381a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from datetime import datetime
from pathlib import Path
from uuid import uuid4


class TestUtils:

    def test_get_screenshot_fp(
        self, mnt_grliq_archive_dir: str, utc_hour_ago: datetime
    ):
        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)