File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 26
26
from pathlib import Path
27
27
from shutil import get_terminal_size
28
28
from sys import platform
29
+ from typing import Literal , Union
29
30
from unittest .mock import patch
30
31
31
32
from _pytest .terminal import TerminalReporter # for terminal customization
124
125
reason = "This tests does not work on student version." ,
125
126
)
126
127
128
+ _REQUIRES_ARG = Union [
129
+ Literal [
130
+ "GRPC" ,
131
+ "DPF" ,
132
+ "LOCAL" ,
133
+ "REMOTE" ,
134
+ "CICD" ,
135
+ "NOCICD" ,
136
+ "XSERVER" ,
137
+ "LINUX" ,
138
+ "NOLINUX" ,
139
+ "WINDOWS" ,
140
+ "NOWINDOWS" ,
141
+ "NOSTUDENT" ,
142
+ "CONSOLE" ,
143
+ ],
144
+ str ,
145
+ ]
146
+
127
147
128
- def requires (requirement : str ):
148
+ def requires (requirement : _REQUIRES_ARG ):
129
149
"""Check requirements"""
130
150
requirement = requirement .lower ()
131
151
You can’t perform that action at this time.
0 commit comments