Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/test_authentication_handoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import itertools
import json
import multiprocessing
import os
import queue
import threading
import time
Expand Down Expand Up @@ -53,12 +54,13 @@ def _bound_controller(tmp_path):
return controller


def test_empty_manifest_is_created_with_owner_only_permissions(tmp_path) -> None:
def test_empty_manifest_is_created_canonically(tmp_path) -> None:
_bound_controller(tmp_path)

marker = tmp_path / AUTHENTICATION_HANDOFF_FILENAME
assert load_authentication_handoffs(tmp_path).intervals == ()
assert marker.stat().st_mode & 0o077 == 0
if os.name != "nt":
assert marker.stat().st_mode & 0o077 == 0


def test_begin_drains_inflight_retention_before_marker_starts(tmp_path) -> None:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_window_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,8 @@ def set_timeout(_element, timeout):
on_screen=False,
process_start_time=123.0,
)
deadline = time.monotonic() + 0.05
monkeypatch.setattr(window_capture_module.time, "monotonic", lambda: 100.0)
deadline = 100.05

assert window_capture_module._macos_window_minimized(
window,
Expand Down