File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import logging
5
5
import time
6
+ from typing import Optional
7
+
8
+ import pytest # type: ignore
6
9
7
10
from tests .conftest import TrackedContainer , get_health
8
11
9
12
LOGGER = logging .getLogger (__name__ )
10
13
11
14
12
- def test_health (container : TrackedContainer ) -> None :
15
+ @pytest .mark .parametrize (
16
+ "env" ,
17
+ [
18
+ None ,
19
+ ["DOCKER_STACKS_JUPYTER_CMD=lab" ],
20
+ ["RESTARTABLE=yes" ],
21
+ ["DOCKER_STACKS_JUPYTER_CMD=notebook" ],
22
+ ["DOCKER_STACKS_JUPYTER_CMD=server" ],
23
+ ["DOCKER_STACKS_JUPYTER_CMD=nbclassic" ],
24
+ ],
25
+ )
26
+ def test_health (container : TrackedContainer , env : Optional [list [str ]]) -> None :
13
27
running_container = container .run_detached (
14
28
tty = True ,
29
+ environment = env ,
15
30
)
16
31
# sleeping some time to let the server start
17
32
time .sleep (15 )
You can’t perform that action at this time.
0 commit comments