Test unit. logo: désactive vérification contenu répertoire
This commit is contained in:
parent
a0a6dbea00
commit
bc6d9d5442
@ -8,6 +8,7 @@ Utiliser comme:
|
||||
from pathlib import Path
|
||||
from shutil import copy
|
||||
|
||||
import pytest
|
||||
from _pytest.python_api import approx
|
||||
|
||||
import app
|
||||
@ -167,8 +168,11 @@ def test_create_jpg_instead_of_png_logo(create_logos):
|
||||
created.unlink(missing_ok=True)
|
||||
|
||||
|
||||
@pytest.mark.skip(
|
||||
reason="il peut y avoir d'autres fichiers logos sur les serveurs de dev"
|
||||
)
|
||||
def test_list_logo(create_logos):
|
||||
# test only existence of copied logos. We assumes that they are OK
|
||||
"""Vérifie que nos logos sont présents et que ce sont les seuls."""
|
||||
dept1, dept2, dept3 = create_logos
|
||||
logos = list_logos()
|
||||
assert set(logos.keys()) == {dept1.id, dept2.id, None}
|
||||
|
Loading…
Reference in New Issue
Block a user