Mark selected statschannel tests as xfail
The test_zone_timers_secondary_json() and test_zone_timers_secondary_xml() tests are affected by issue #3983. Due to the way tests are run, they are only affected when executing them with the pytest runner. Strict mode is set for pytest runner, as it always fails there. The strict mode ensures we'll catch the change when the it starts passing once the underlying issue is fixed. It can't be set for the legacy runner, since the test (incorrectly) passes there. Related #3983
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
# information regarding copyright ownership.
|
||||
|
||||
from datetime import datetime
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -82,6 +83,7 @@ def test_zone_timers_primary_json(statsport):
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="GL #3983", strict="LEGACY_TEST_RUNNER" not in os.environ)
|
||||
def test_zone_timers_secondary_json(statsport):
|
||||
generic.test_zone_timers_secondary(
|
||||
fetch_zones_json,
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
# information regarding copyright ownership.
|
||||
|
||||
from datetime import datetime
|
||||
import os
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import pytest
|
||||
@@ -112,6 +113,7 @@ def test_zone_timers_primary_xml(statsport):
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="GL #3983", strict="LEGACY_TEST_RUNNER" not in os.environ)
|
||||
def test_zone_timers_secondary_xml(statsport):
|
||||
generic.test_zone_timers_secondary(
|
||||
fetch_zones_xml,
|
||||
|
||||
Reference in New Issue
Block a user