Skip to content

Commit d84c063

Browse files
akinomyogascop
andcommitted
test(dict): add xfail for network
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
1 parent b31fe1e commit d84c063

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/t/test_dict.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
import pytest
24

35

@@ -6,6 +8,10 @@ class TestDict:
68
def test_1(self, completion):
79
assert completion
810

11+
@pytest.mark.xfail(
12+
os.environ.get("NETWORK") == "none",
13+
reason="The database list is unavailable without network",
14+
)
915
@pytest.mark.complete("dict --database ", require_cmd=True)
1016
def test_database(self, completion):
1117
# Ensure the directory name "__load_completion/" not generated because
@@ -14,6 +20,10 @@ def test_database(self, completion):
1420
# completions.
1521
assert completion and "__load_completion/" not in completion
1622

23+
@pytest.mark.xfail(
24+
os.environ.get("NETWORK") == "none",
25+
reason="The database list is unavailable without network",
26+
)
1727
@pytest.mark.complete(
1828
"dict -h dict.org --database ", require_cmd=True, env=dict(IFS="")
1929
)

0 commit comments

Comments
 (0)