summaryrefslogtreecommitdiffstats
path: root/test/test_prerun.py
blob: d8320884932d1bdff45882999ab3f513c9d71bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"""Tests for ansible_compat.prerun module."""

from pathlib import Path

from ansible_compat.prerun import get_cache_dir


def test_get_cache_dir_relative() -> None:
    """Test behaviors of get_cache_dir."""
    relative_path = Path()
    abs_path = relative_path.resolve()
    assert get_cache_dir(relative_path) == get_cache_dir(abs_path)