We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 556901a commit 5824448Copy full SHA for 5824448
podman/tests/integration/test_system.py
@@ -16,7 +16,7 @@
16
17
import podman.tests.integration.base as base
18
from podman import PodmanClient
19
-from podman.errors import APIError
+from podman.errors import APIError, PodmanConnectionError
20
21
22
class SystemIntegrationTest(base.IntegrationTest):
@@ -64,3 +64,8 @@ def test_login(self):
64
def test_from_env(self):
65
"""integration: from_env() no error"""
66
PodmanClient.from_env()
67
+
68
+ def test_from_env_exceptions(self):
69
+ """integration: from_env() returns exceptions"""
70
+ with self.assertRaises(PodmanConnectionError):
71
+ PodmanClient.from_env(base_url="unix:///path/to/nonexistent.sock")
0 commit comments