Skip tests properly (#31308)
* Skip tests properly * [test_all] * Add 'reason' as kwarg for skipTest * [test_all] Fix up * [test_all]
This commit is contained in:
@@ -303,31 +303,32 @@ class CanineTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
self.assertListEqual(getattr(tokenizer, "additional_special_tokens"), [additional_special_token])
|
||||
self.assertListEqual(getattr(tokenizer, "additional_special_tokens_ids"), [additional_special_token_id])
|
||||
|
||||
# tokenizer has a fixed vocab_size (namely all possible unicode code points)
|
||||
@unittest.skip(reason="tokenizer has a fixed vocab_size (namely all possible unicode code points)")
|
||||
def test_add_tokens_tokenizer(self):
|
||||
pass
|
||||
|
||||
# CanineTokenizer does not support do_lower_case = True, as each character has its own Unicode code point
|
||||
# ("b" and "B" for example have different Unicode code points)
|
||||
@unittest.skip(reason="CanineTokenizer does not support do_lower_case = True")
|
||||
def test_added_tokens_do_lower_case(self):
|
||||
pass
|
||||
|
||||
# CanineModel does not support the get_input_embeddings nor the get_vocab method
|
||||
@unittest.skip(reason="CanineModel does not support the get_input_embeddings nor the get_vocab method")
|
||||
def test_np_encode_plus_sent_to_model(self):
|
||||
pass
|
||||
|
||||
# CanineModel does not support the get_input_embeddings nor the get_vocab method
|
||||
@unittest.skip(reason="CanineModel does not support the get_input_embeddings nor the get_vocab method")
|
||||
def test_torch_encode_plus_sent_to_model(self):
|
||||
pass
|
||||
|
||||
# tokenizer does not have vocabulary
|
||||
@unittest.skip(reason="CanineTokenizer does not have vocabulary")
|
||||
def test_get_vocab(self):
|
||||
pass
|
||||
|
||||
# inputs cannot be pretokenized since ids depend on whole input string and not just on single characters
|
||||
@unittest.skip(reason="inputs cannot be pretokenized since ids depend on whole input string")
|
||||
def test_pretokenized_inputs(self):
|
||||
pass
|
||||
|
||||
# tests all ids in vocab => vocab doesn't exist so unnecessary to test
|
||||
@unittest.skip(reason="CanineTokenizer does not have vocabulary")
|
||||
def test_conversion_reversible(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user