treeherder/tests/seta/test_analyze_failures.py

15 строки
432 B
Python
Исходник Обычный вид История

2016-10-03 19:56:51 +03:00
import pytest
from treeherder.seta.analyze_failures import get_failures_fixed_by_commit
@pytest.mark.django_db()
def test_analyze_failures(fifteen_jobs_with_notes, failures_fixed_by_commit, patched_seta_fixed_by_commit_repos):
ret = get_failures_fixed_by_commit()
exp = failures_fixed_by_commit
assert sorted(ret.keys()) == sorted(exp.keys())
for key in exp:
assert sorted(ret[key]) == sorted(exp[key])