11import sys
2- from unittest .mock import Mock , MagicMock
2+ from unittest .mock import MagicMock , Mock
33
44try :
55 from types import NoneType # type: ignore[attr-defined]
66except ImportError :
77 NoneType = type (None ) # type: ignore[misc]
88
9- from typing import Optional , Any , Union
109from collections .abc import Sequence
10+ from typing import Any , Optional , Union
1111
1212import pytest
13- from full_match import match
1413from denial import InnerNone , InnerNoneType , SentinelType
14+ from full_match import match
1515
1616from simtypes import check
1717
@@ -132,7 +132,7 @@ def test_bool_is_int(make_optional, make_union):
132132 assert check (False , make_optional (make_union (int , str )))
133133
134134
135- def test_optional (new_style , tuple_type , list_type , make_optional ):
135+ def test_optional (tuple_type , list_type , make_optional ):
136136 assert check (None , make_optional (int ))
137137 assert check (1 , make_optional (int ))
138138 assert check (0 , make_optional (int ))
@@ -185,11 +185,11 @@ def test_optional_union(make_union, make_optional, tuple_type):
185185
186186
187187@pytest .mark .parametrize (
188- [ 'addictional_parameters' ] ,
188+ 'addictional_parameters' ,
189189 [
190- ({},) ,
191- ( {'strict' : True },) ,
192- ( {'strict' : False },) ,
190+ {} ,
191+ {'strict' : True },
192+ {'strict' : False },
193193 ],
194194)
195195def test_list_without_arguments (list_type , addictional_parameters ):
@@ -210,11 +210,11 @@ def test_list_without_arguments(list_type, addictional_parameters):
210210
211211
212212@pytest .mark .parametrize (
213- [ 'addictional_parameters' ] ,
213+ 'addictional_parameters' ,
214214 [
215- ({},) ,
216- ( {'strict' : True },) ,
217- ( {'strict' : False },) ,
215+ {} ,
216+ {'strict' : True },
217+ {'strict' : False },
218218 ],
219219)
220220def test_tuple_without_arguments (tuple_type , addictional_parameters ):
@@ -240,11 +240,11 @@ def test_tuple_without_arguments(tuple_type, addictional_parameters):
240240
241241
242242@pytest .mark .parametrize (
243- [ 'addictional_parameters' ] ,
243+ 'addictional_parameters' ,
244244 [
245- ({},) ,
246- ( {'strict' : True },) ,
247- ( {'strict' : False },) ,
245+ {} ,
246+ {'strict' : True },
247+ {'strict' : False },
248248 ],
249249)
250250def test_set_without_arguments (set_type , addictional_parameters ):
@@ -265,11 +265,11 @@ def test_set_without_arguments(set_type, addictional_parameters):
265265
266266
267267@pytest .mark .parametrize (
268- [ 'addictional_parameters' ] ,
268+ 'addictional_parameters' ,
269269 [
270- ({},) ,
271- ( {'strict' : True },) ,
272- ( {'strict' : False },) ,
270+ {} ,
271+ {'strict' : True },
272+ {'strict' : False },
273273 ],
274274)
275275def test_dict_without_arguments (dict_type , addictional_parameters ):
@@ -449,17 +449,17 @@ def test_lists_are_tuples_flag_is_true_in_strict_mode(subscribable_tuple_type, s
449449
450450
451451@pytest .mark .parametrize (
452- [ 'strict_mode' ] ,
452+ 'strict_mode' ,
453453 [
454- ( False ,) ,
455- ( True ,) ,
454+ False ,
455+ True ,
456456 ],
457457)
458458@pytest .mark .parametrize (
459- [ 'addictional_parameters' ] ,
459+ 'addictional_parameters' ,
460460 [
461- ( {'pass_mocks' : True },) ,
462- ({},) ,
461+ {'pass_mocks' : True },
462+ {} ,
463463 ],
464464)
465465def test_pass_mocks_when_its_on (strict_mode , list_type , addictional_parameters ):
@@ -476,10 +476,10 @@ def test_pass_mocks_when_its_on(strict_mode, list_type, addictional_parameters):
476476
477477
478478@pytest .mark .parametrize (
479- [ 'strict_mode' ] ,
479+ 'strict_mode' ,
480480 [
481- ( False ,) ,
482- ( True ,) ,
481+ False ,
482+ True ,
483483 ],
484484)
485485def test_pass_mocks_when_its_off (strict_mode , list_type ):
@@ -496,10 +496,10 @@ def test_pass_mocks_when_its_off(strict_mode, list_type):
496496
497497
498498@pytest .mark .parametrize (
499- [ 'strict_mode' ] ,
499+ 'strict_mode' ,
500500 [
501- ( False ,) ,
502- ( True ,) ,
501+ False ,
502+ True ,
503503 ],
504504)
505505def test_denial_sentinel (strict_mode ):
@@ -514,10 +514,10 @@ def test_denial_sentinel(strict_mode):
514514
515515
516516@pytest .mark .parametrize (
517- [ 'strict_mode' ] ,
517+ 'strict_mode' ,
518518 [
519- ( False ,) ,
520- ( True ,) ,
519+ False ,
520+ True ,
521521 ],
522522)
523523def test_denial_innernonetype (strict_mode ):
@@ -532,10 +532,10 @@ def test_denial_innernonetype(strict_mode):
532532
533533
534534@pytest .mark .parametrize (
535- [ 'strict_mode' ] ,
535+ 'strict_mode' ,
536536 [
537- ( False ,) ,
538- ( True ,) ,
537+ False ,
538+ True ,
539539 ],
540540)
541541def test_denial_innernone (strict_mode ):
0 commit comments