mirror of
https://github.com/langgenius/dify.git
synced 2026-11-28 23:58:17 +08:00
11 lines
366 B
Python
11 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")
|