示例#1
0
def test_status_aggregation_with_warning():
    assert healthpy.status("pass", "warn", "pass") == "warn"
示例#2
0
def test_status_aggregation_with_failure():
    assert healthpy.status("pass", "fail", "warn") == "fail"
示例#3
0
def test_status_aggregation_with_custom_failure(monkeypatch):
    monkeypatch.setattr(healthpy, "fail_status", "custom")
    assert healthpy.status("pass", "custom", "warn") == "custom"
示例#4
0
def test_status_aggregation_with_custom_pass(monkeypatch):
    monkeypatch.setattr(healthpy, "pass_status", "custom")
    assert healthpy.status("custom", "custom", "custom") == "custom"
示例#5
0
def test_status_aggregation_with_pass():
    assert healthpy.status("pass", "pass", "pass") == "pass"