1.0.0
Wydanie WGTools-Extended / release (push) Failing after 16s

This commit is contained in:
asminme committed 2026-10-30 00:35:08 +01:00
1 parent f5bdd7e21c
commit affe28ad71
110 files changed
+52936 -14

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
"""The fork must not contact the upstream update service."""
from pathlib import Path
import runpy
import pytest
def test_upstream_update_is_disabled():
pytest.importorskip('fcntl')
helper = runpy.run_path(str(Path(__file__).resolve().parents[1] / 'scripts/wgtools-helper'))
with pytest.raises(RuntimeError, match='Aktualizacje online są wyłączone'):
helper['update_check']()
with pytest.raises(RuntimeError, match='Aktualizacje online są wyłączone'):
helper['update_apply']('wg0')
assert helper['update_notice']()['update_available'] is False