|
1 | 1 | import base64 |
2 | 2 | import json |
3 | 3 | import pytest |
| 4 | +from typing import ClassVar |
4 | 5 |
|
5 | 6 |
|
6 | 7 | def encoded(o): |
@@ -124,7 +125,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
124 | 125 |
|
125 | 126 |
|
126 | 127 | class TestExtraConditionsDateGe(TestEndpointCustom): |
127 | | - extra_conditions = [ |
| 128 | + extra_conditions: ClassVar[list] = [ |
128 | 129 | [ |
129 | 130 | "start", |
130 | 131 | "date-range", |
@@ -167,7 +168,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
167 | 168 |
|
168 | 169 |
|
169 | 170 | class TestExtraConditionsDateLe(TestEndpointCustom): |
170 | | - extra_conditions = [ |
| 171 | + extra_conditions: ClassVar[list] = [ |
171 | 172 | [ |
172 | 173 | "start", |
173 | 174 | "date-range", |
@@ -210,7 +211,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
210 | 211 |
|
211 | 212 |
|
212 | 213 | class TestExtraConditionsDateGeLe(TestEndpointCustom): |
213 | | - extra_conditions = [ |
| 214 | + extra_conditions: ClassVar[list] = [ |
214 | 215 | [ |
215 | 216 | "start", |
216 | 217 | "date-range", |
@@ -253,7 +254,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
253 | 254 |
|
254 | 255 |
|
255 | 256 | class TestExtraConditionsDateGrLs(TestEndpointCustom): |
256 | | - extra_conditions = [ |
| 257 | + extra_conditions: ClassVar[list] = [ |
257 | 258 | [ |
258 | 259 | "start", |
259 | 260 | "date-range", |
@@ -296,7 +297,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
296 | 297 |
|
297 | 298 |
|
298 | 299 | class TestExtraConditionsStringInSingleTerm(TestEndpointCustom): |
299 | | - extra_conditions = [ |
| 300 | + extra_conditions: ClassVar[list] = [ |
300 | 301 | [ |
301 | 302 | "searchwords", |
302 | 303 | "string", |
@@ -327,7 +328,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
327 | 328 |
|
328 | 329 |
|
329 | 330 | class TestExtraConditionsStringInSingleTerm2(TestEndpointCustom): |
330 | | - extra_conditions = [ |
| 331 | + extra_conditions: ClassVar[list] = [ |
331 | 332 | [ |
332 | 333 | "searchwords", |
333 | 334 | "string", |
@@ -358,7 +359,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
358 | 359 |
|
359 | 360 |
|
360 | 361 | class TestExtraConditionsStringInMultipleTerms(TestEndpointCustom): |
361 | | - extra_conditions = [ |
| 362 | + extra_conditions: ClassVar[list] = [ |
362 | 363 | [ |
363 | 364 | "searchwords", |
364 | 365 | "string", |
@@ -389,7 +390,7 @@ def test_paths(self, all_path_string, path: str, expected: bool): |
389 | 390 |
|
390 | 391 |
|
391 | 392 | class TestExtraConditionsStringInNoTerms(TestEndpointCustom): |
392 | | - extra_conditions = [ |
| 393 | + extra_conditions: ClassVar[list] = [ |
393 | 394 | [ |
394 | 395 | "searchwords", |
395 | 396 | "string", |
|
0 commit comments