Archived
1 parent
f5bdd7e21c
commit
affe28ad71
110 files changed
+52936
-14
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user