mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 05:41:09 +08:00
12 lines
366 B
Python
12 lines
366 B
Python
import httpx
|
|
import pytest
|
|
|
|
from controllers.openapi._errors import MarketplaceUnavailable
|
|
from controllers.openapi.plugins import _plugin_errors
|
|
|
|
|
|
def test_marketplace_network_failure_is_marketplace_unavailable() -> None:
|
|
with pytest.raises(MarketplaceUnavailable):
|
|
with _plugin_errors():
|
|
raise httpx.ConnectError("marketplace unreachable")
|