@@ -15,14 +15,14 @@ def __init__(self, arguments=None, tests=None):
1515
1616class TestValidationFn (unittest .TestCase ):
1717
18- def test_too_many_args (self ):
18+ def test_too_many_args (self ) -> None :
1919 mock_rule = MockRule ([sifter .grammar .Tag ('IS' ), 13 , ])
2020 self .assertRaises (
2121 sifter .grammar .RuleSyntaxError ,
2222 mock_rule .validate_arguments ,
2323 )
2424
25- def test_not_enough_args (self ):
25+ def test_not_enough_args (self ) -> None :
2626 mock_rule = MockRule ([13 , ])
2727 self .assertRaises (
2828 sifter .grammar .RuleSyntaxError ,
@@ -36,29 +36,29 @@ def test_not_enough_args(self):
3636
3737class TestTagValidator (unittest .TestCase ):
3838
39- def test_allowed_tag (self ):
39+ def test_allowed_tag (self ) -> None :
4040 mock_validator = sifter .validators .Tag (['MOCK' , 'IS' , ])
4141 self .assertEqual (
4242 mock_validator .validate ([sifter .grammar .Tag ('IS' )], 0 ),
4343 1
4444 )
4545
46- def test_allowed_single_tag (self ):
46+ def test_allowed_single_tag (self ) -> None :
4747 # test the case for a non-list single tag name
4848 mock_validator = sifter .validators .Tag ('IS' )
4949 self .assertEqual (
5050 mock_validator .validate ([sifter .grammar .Tag ('IS' )], 0 ),
5151 1
5252 )
5353
54- def test_not_allowed_tag (self ):
54+ def test_not_allowed_tag (self ) -> None :
5555 mock_validator = sifter .validators .Tag (['MOCK' , 'FOO' , ])
5656 self .assertEqual (
5757 mock_validator .validate ([sifter .grammar .Tag ('IS' )], 0 ),
5858 0
5959 )
6060
61- def test_not_allowed_single_tag (self ):
61+ def test_not_allowed_single_tag (self ) -> None :
6262 # test the case for a non-list single tag name. test when the tag is a
6363 # substring of the allowed tag.
6464 mock_validator = sifter .validators .Tag ('ISFOO' )
0 commit comments