You've already forked etude_lego_jurassic_world
Ajoute le genre des personnages et colore les graphiques
This commit is contained in:
@@ -71,6 +71,13 @@ def test_build_minifigs_by_set_filters_spares_and_deduplicates(tmp_path) -> None
|
||||
"alias,canonical\n"
|
||||
"Guard in Helmet with Trans-Brown Visor,Figurant\n",
|
||||
)
|
||||
genders_path = tmp_path / "known_character_genders.csv"
|
||||
write_csv(
|
||||
genders_path,
|
||||
"known_character,gender\n"
|
||||
"Owen Grady,male\n"
|
||||
"Figurant,unknown\n",
|
||||
)
|
||||
destination_path = tmp_path / "minifigs_by_set.csv"
|
||||
|
||||
build_minifigs_by_set(
|
||||
@@ -81,12 +88,13 @@ def test_build_minifigs_by_set_filters_spares_and_deduplicates(tmp_path) -> None
|
||||
inventory_minifigs_path,
|
||||
minifigs_path,
|
||||
aliases_path,
|
||||
genders_path,
|
||||
destination_path,
|
||||
)
|
||||
|
||||
assert destination_path.read_text() == (
|
||||
"set_num,part_num,known_character,fig_num\n"
|
||||
"123-1,head-a,Owen Grady,fig-owen\n"
|
||||
"123-1,head-b,Figurant,fig-guard\n"
|
||||
"124-1,head-b,Figurant,fig-guard\n"
|
||||
"set_num,part_num,known_character,fig_num,gender\n"
|
||||
"123-1,head-a,Owen Grady,fig-owen,male\n"
|
||||
"123-1,head-b,Figurant,fig-guard,unknown\n"
|
||||
"124-1,head-b,Figurant,fig-guard,unknown\n"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user