Skip to content

Commit 414640c

Browse files
Test: Mise à jour d'un test unitaire pour chemin absolu
- Mise à jour d'un test unitaire suite à la modification du chemin affiché en chemin absolu
1 parent ddfaea3 commit 414640c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_analyseur_log_apache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import pytest
6+
from os.path import abspath
67
from parse.fichier_log_apache import FichierLogApache
78
from analyse.filtre_log_apache import FiltreLogApache
89
from analyse.analyseur_log_apache import AnalyseurLogApache
@@ -324,7 +325,7 @@ def test_analyseur_get_analyse_complete_valide(analyseur_log_apache):
324325
de la classe :class:`AnalyseurLogApache`.
325326
"""
326327
analyse = analyseur_log_apache.get_analyse_complete()
327-
assert analyse["chemin"] == analyseur_log_apache.fichier.chemin
328+
assert analyse["chemin"] == abspath(analyseur_log_apache.fichier.chemin)
328329
assert analyse["total_entrees"] == analyseur_log_apache.get_total_entrees()
329330
assert analyse["filtre"] == analyseur_log_apache.filtre.get_dict_filtre()
330331
statistiques = analyse["statistiques"]

0 commit comments

Comments
 (0)