mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-19 09:51:47 +02:00
pytests: Add test for object required but path non existent
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
This commit is contained in:
@@ -352,6 +352,15 @@ class TestContainerToArgs(unittest.IsolatedAsyncioTestCase):
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
async def test_env_file_obj_required_non_existent_path(self):
|
||||||
|
c = create_compose_mock()
|
||||||
|
|
||||||
|
cnt = get_minimal_container()
|
||||||
|
cnt['env_file'] = {'path': 'not-exists', 'required': True}
|
||||||
|
|
||||||
|
with self.assertRaises(ValueError):
|
||||||
|
await container_to_args(c, cnt)
|
||||||
|
|
||||||
async def test_env_file_obj_optional(self):
|
async def test_env_file_obj_optional(self):
|
||||||
c = create_compose_mock()
|
c = create_compose_mock()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user