[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:
@@ -30,7 +30,7 @@ if is_vision_available():
|
||||
from transformers import ViltImageProcessor
|
||||
|
||||
|
||||
class ViltImageProcessingTester(unittest.TestCase):
|
||||
class ViltImageProcessingTester:
|
||||
def __init__(
|
||||
self,
|
||||
parent,
|
||||
@@ -46,7 +46,6 @@ class ViltImageProcessingTester(unittest.TestCase):
|
||||
image_mean=[0.5, 0.5, 0.5],
|
||||
image_std=[0.5, 0.5, 0.5],
|
||||
):
|
||||
super().__init__()
|
||||
size = size if size is not None else {"shortest_edge": 30}
|
||||
self.parent = parent
|
||||
self.batch_size = batch_size
|
||||
|
||||
Reference in New Issue
Block a user