Skip to content

Commit d6928f9

Browse files
committed
Refactor image generation scripts
1 parent 6aafd12 commit d6928f9

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

test/image/make_baseline.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,12 @@
7070
else:
7171
allNames = ALL_MOCKS
7272

73-
# unable to generate baselines for the following mocks
74-
blacklist = [
75-
"map_stamen-style",
76-
"map_predefined-styles2",
77-
"map_scattercluster",
78-
"map_fonts-supported-open-sans",
79-
"map_fonts-supported-open-sans-weight",
80-
"map_layers",
81-
]
82-
allNames = [a for a in allNames if a not in blacklist]
73+
with open(
74+
os.path.join(root, "test", "image", "compare_pixels_collections.json"), "r"
75+
) as f:
76+
# unable to generate baselines for the following mocks
77+
disallowList = set(json.load(f)["compare_disallow"])
78+
allNames = [a for a in allNames if a not in disallowList]
8379

8480
if len(allNames) == 0:
8581
print("error: Nothing to create!")
@@ -90,6 +86,8 @@
9086
outName = name
9187
if mathjax_version == 3:
9288
outName = "mathjax3___" + name
89+
if virtual_webgl_version == 1:
90+
outName = "virtual-webgl___" + outName
9391

9492
print(outName)
9593

test/image/make_exports.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
# 'png' is tested by image-test
1515

1616
allNames = [
17-
"plot_types",
1817
"annotations",
19-
"shapes",
20-
"range_slider",
2118
"contour_legend-colorscale",
22-
"layout_image",
23-
"image_astronaut_source",
19+
"fonts",
2420
"gl2d_no-clustering2",
2521
"gl3d_surface-heatmap-treemap_transparent-colorscale",
22+
"image_astronaut_source",
23+
"layout_image",
2624
"map_density-multiple_legend",
25+
"mathjax",
26+
"plot_types",
27+
"range_slider",
28+
"shapes",
2729
"smith_modes",
28-
"zsmooth_methods",
29-
"fonts",
3030
"worldcup",
31-
"mathjax",
31+
"zsmooth_methods",
3232
]
3333

3434
failed = 0

0 commit comments

Comments
 (0)