[tests] further fix Tester object has no attribute '_testMethodName' (#35781)

* bug fix

* update with more cases

* more entries

* Fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Fanli Lin
2025-01-29 23:05:33 +08:00
committed by GitHub
parent ec7790f0d3
commit f0ae65c198
57 changed files with 57 additions and 110 deletions

View File

@@ -74,7 +74,7 @@ def prepare_mbart_inputs_dict(
}
class FlaxMBartModelTester(unittest.TestCase):
class FlaxMBartModelTester:
def __init__(
self,
parent,
@@ -116,7 +116,6 @@ class FlaxMBartModelTester(unittest.TestCase):
self.bos_token_id = bos_token_id
self.decoder_start_token_id = decoder_start_token_id
self.initializer_range = initializer_range
super().__init__()
def prepare_config_and_inputs(self):
input_ids = np.clip(ids_tensor([self.batch_size, self.seq_length - 1], self.vocab_size), 3, self.vocab_size)