File tree 1 file changed +5
-6
lines changed 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
# Please, take a look at the hierarchy of the images here:
11
11
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#image-relationships
12
- ALL_IMAGES = {
12
+ _IMAGE_PARENT = {
13
13
"docker-stacks-foundation" : None ,
14
14
"base-notebook" : "docker-stacks-foundation" ,
15
15
"minimal-notebook" : "base-notebook" ,
@@ -30,9 +30,8 @@ def get_test_dirs(
30
30
if short_image_name is None :
31
31
return []
32
32
33
- test_dirs = get_test_dirs (ALL_IMAGES [short_image_name ])
34
- if (
35
- current_image_tests_dir := IMAGE_SPECIFIC_TESTS_DIR / short_image_name
36
- ).exists ():
37
- test_dirs .append (current_image_tests_dir )
33
+ test_dirs = get_test_dirs (_IMAGE_PARENT [short_image_name ])
34
+ current_test_dir = IMAGE_SPECIFIC_TESTS_DIR / short_image_name
35
+ assert current_test_dir .exists (), f"{ current_test_dir } does not exist."
36
+ test_dirs .append (current_test_dir )
38
37
return test_dirs
You can’t perform that action at this time.
0 commit comments