cleanup #18

Merged
dan merged 15 commits from cleanup into dev 2023-12-15 17:57:51 +01:00
Showing only changes of commit b2c9862589 - Show all commits

View file

@ -1,23 +1,26 @@
import time
import pytest
from pytest_abra.dir_manager import DirManager
from pathlib import Path
import pytest
from pytest_abra.dir_manager import DirManager
def test_get_latest_session_id_from_non_existing_dir(tmp_path: Path):
out = DirManager.get_latest_session_id(tmp_path / "not_exist")
assert out is None
def test_get_latest_session_id_from_empty_dir(tmp_path: Path):
out = DirManager.get_latest_session_id(tmp_path)
assert out is None
def test_get_latest_session_id_single(tmp_path: Path):
(tmp_path / "a").mkdir()
out = DirManager.get_latest_session_id(tmp_path)
assert out == "a"
@pytest.mark.slow
def test_get_latest_session_id(tmp_path: Path):
@ -26,5 +29,3 @@ def test_get_latest_session_id(tmp_path: Path):
(tmp_path / "b").mkdir()
out = DirManager.get_latest_session_id(tmp_path)
assert out == "b"