1

Filtre les couleurs ignorées et aligne les palettes

This commit is contained in:
2025-12-02 15:07:35 +01:00
parent 7b6045941f
commit 812fd4a862
10 changed files with 66 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ def test_aggregate_colors_by_set(tmp_path: Path) -> None:
["3002", "FFFFFF", "false", "1000-1", "1000", "2020", "1", "true", "false"],
["3003", "000000", "true", "1000-1", "1000", "2020", "4", "false", "true"],
["4001", "FFFFFF", "false", "2000-1", "2000", "2021", "3", "false", "true"],
["4002", "0033B2", "false", "2000-1", "2000", "2021", "5", "false", "false"],
],
)
write_csv(
@@ -50,6 +51,7 @@ def test_aggregate_colors_by_set(tmp_path: Path) -> None:
[
["1", "White", "FFFFFF", "False", "0", "0", "0", "0"],
["2", "Trans-Black", "000000", "True", "0", "0", "0", "0"],
["3", "Ignored Blue", "0033B2", "False", "0", "0", "0", "0"],
],
)

View File

@@ -42,6 +42,7 @@ def test_plot_colors_grid(tmp_path: Path) -> None:
["3001", "FFFFFF", "false", "1000", "2", "false"],
["3002", "000000", "true", "1000", "5", "false"],
["3003", "FF0000", "false", "1000", "1", "true"],
["3004", "0033B2", "false", "1000", "10", "false"],
],
)
write_csv(

View File

@@ -49,6 +49,7 @@ def test_extract_minifig_heads_and_colors(tmp_path: Path) -> None:
["3001", "FFFFFF", "false", "1000-1", "1000", "2020", "2", "false", "false"],
["3626b", "FFE1BD", "false", "2000-1", "2000", "2021", "2", "false", "true"],
["3626b", "FFE1BD", "false", "2000-1", "2000", "2021", "1", "true", "true"],
["3626b", "0033B2", "false", "2000-1", "2000", "2021", "1", "false", "true"],
],
)
write_csv(
@@ -67,6 +68,7 @@ def test_extract_minifig_heads_and_colors(tmp_path: Path) -> None:
["1", "Light Flesh", "FFE1BD", "False", "0", "0", "0", "0"],
["2", "Medium Dark Flesh", "E7B68F", "False", "0", "0", "0", "0"],
["3", "White", "FFFFFF", "False", "0", "0", "0", "0"],
["4", "Ignored Blue", "0033B2", "False", "0", "0", "0", "0"],
],
)

View File

@@ -22,6 +22,7 @@ def test_build_top_colors_by_set_selects_top5_non_minifig(tmp_path: Path) -> Non
"123-1,123,2020,444444,false,Green,2,2,0,2\n"
"123-1,123,2020,555555,false,Yellow,1,1,0,1\n"
"123-1,123,2020,666666,false,Pink,1,1,0,1\n"
"123-1,123,2020,0033B2,false,Ignored Blue,50,50,0,50\n"
"124-1,124,2021,aaaaaa,false,Gray,4,4,4,0\n",
)
sets_path = tmp_path / "sets_enriched.csv"