mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 23:10:53 +01:00
Six text-free styles (gradient, flow/Voronoi, habit heatmap, shutdown clock, Earth day/night, plasma) replace the white i3 root. A 15-minute systemd user timer picks a new random style per monitor every 3 hours, unlike its previous one and the other monitor's; live styles refresh in between. Also syncs i3/config with the live config and prunes the oldest evidence artifact for the 60-file cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWX51FMD58yKUC1eYWf
22 lines
727 B
Python
22 lines
727 B
Python
"""Tests for the render context built for the running desktop."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from python_pkg.wallpaper_rotator import _context
|
|
|
|
|
|
def test_live_context_points_at_the_users_dirs(
|
|
monkeypatch: pytest.MonkeyPatch, tmp_path: Path
|
|
) -> None:
|
|
monkeypatch.setattr(Path, "home", classmethod(lambda _cls: tmp_path))
|
|
monkeypatch.setattr(_context, "DEFAULT_CACHE", tmp_path / ".cache" / "w")
|
|
ctx = _context.RenderContext.live()
|
|
assert ctx.data_home == tmp_path / ".local" / "share"
|
|
assert ctx.earth_dir == tmp_path / ".cache" / "w" / "earth"
|
|
assert ctx.shutdown_conf == Path("/etc/shutdown-schedule.conf")
|
|
assert ctx.now.tzinfo is not None
|