fr37_probe_plugin.py
import os,socket
import pytest
attempts=[]
def deny(*a,**k):
attempts.append('network')
raise AssertionError('FR37 offline probe forbids network')
socket.socket.connect=deny
socket.getaddrinfo=deny
@pytest.fixture(autouse=True)
def frozen(monkeypatch):
import shopify_install
monkeypatch.setattr(shopify_install,'_utc_now_iso',lambda:os.environ['FR37_TIMESTAMP'])
yield
assert attempts==[]