Skip to content

Commit 8bc5f5d

Browse files
committed
test(oci): stub httpx_sse in unit bootstrap
1 parent 72504a3 commit 8bc5f5d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_oci_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
fastavro_stub.writer = lambda *args, **kwargs: None
3434
sys.modules["fastavro"] = fastavro_stub
3535

36+
if "httpx_sse" not in sys.modules:
37+
httpx_sse_stub = types.ModuleType("httpx_sse")
38+
httpx_sse_stub.connect_sse = lambda *args, **kwargs: None
39+
sys.modules["httpx_sse"] = httpx_sse_stub
40+
3641

3742
@unittest.skipIf(os.getenv("TEST_OCI") is None, "TEST_OCI not set")
3843
class TestOciClient(unittest.TestCase):

0 commit comments

Comments
 (0)