ajout: correction d'erreur, changement de main dans cleaning

This commit is contained in:
2026-03-06 21:02:52 +01:00
parent acf4ddd881
commit f4ded6d8b5
4 changed files with 75 additions and 96 deletions

View File

@@ -1,5 +1,4 @@
import pytest
from pandas import DataFrame
from unittest.mock import patch, mock_open
from cleaning import Cleaning
@@ -49,7 +48,7 @@ def test_fill_missing_scores(cleaning_raw: Cleaning):
filled = cleaning_raw.fill_missing_scores().getVins()
for col in cleaning_raw.SCORE_COLS:
assert filled[col].isna().sum() == 0
pauillac_robert = filled[filled["Appellation"] == "Pauillac"]["Robert"]
assert (pauillac_robert == 95.0).all()