File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+
1
3
import pytest
2
4
3
5
@@ -6,6 +8,10 @@ class TestDict:
6
8
def test_1 (self , completion ):
7
9
assert completion
8
10
11
+ @pytest .mark .xfail (
12
+ os .environ .get ("NETWORK" ) == "none" ,
13
+ reason = "The database list is unavailable without network" ,
14
+ )
9
15
@pytest .mark .complete ("dict --database " , require_cmd = True )
10
16
def test_database (self , completion ):
11
17
# Ensure the directory name "__load_completion/" not generated because
@@ -14,6 +20,10 @@ def test_database(self, completion):
14
20
# completions.
15
21
assert completion and "__load_completion/" not in completion
16
22
23
+ @pytest .mark .xfail (
24
+ os .environ .get ("NETWORK" ) == "none" ,
25
+ reason = "The database list is unavailable without network" ,
26
+ )
17
27
@pytest .mark .complete (
18
28
"dict -h dict.org --database " , require_cmd = True , env = dict (IFS = "" )
19
29
)
You can’t perform that action at this time.
0 commit comments