You've already forked etude_lego_jurassic_world
Chiffre les personnages par année avec heatmap
This commit is contained in:
@@ -39,7 +39,7 @@ def test_write_character_counts_outputs_csv(tmp_path: Path) -> None:
|
||||
|
||||
|
||||
def test_aggregate_presence_by_year_excludes_figurants(tmp_path: Path) -> None:
|
||||
"""Calcule la présence annuelle en excluant les figurants."""
|
||||
"""Calcule le total annuel en excluant les figurants."""
|
||||
sets_path = tmp_path / "sets_enriched.csv"
|
||||
sets_path.write_text(
|
||||
"set_num,year\n"
|
||||
@@ -55,6 +55,6 @@ def test_aggregate_presence_by_year_excludes_figurants(tmp_path: Path) -> None:
|
||||
presence = aggregate_presence_by_year(minifigs_rows, sets_years, excluded_characters=["Figurant"])
|
||||
|
||||
assert presence == [
|
||||
{"known_character": "Owen Grady", "year": "2020", "present": "1"},
|
||||
{"known_character": "Owen Grady", "year": "2021", "present": "0"},
|
||||
{"known_character": "Owen Grady", "year": "2020", "minifig_count": "1"},
|
||||
{"known_character": "Owen Grady", "year": "2021", "minifig_count": "0"},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user