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:
@@ -213,6 +213,7 @@ class OneFormerImageProcessingTest(ImageProcessingTestMixin, unittest.TestCase):
|
||||
|
||||
return inputs
|
||||
|
||||
@unittest.skip
|
||||
def test_init_without_params(self):
|
||||
pass
|
||||
|
||||
|
||||
@@ -377,7 +377,7 @@ class OneFormerModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCas
|
||||
|
||||
def test_training(self):
|
||||
if not self.model_tester.is_training:
|
||||
return
|
||||
self.skipTest(reason="model_tester.is_training is set to False")
|
||||
# only OneFormerForUniversalSegmentation has the loss
|
||||
model_class = self.all_model_classes[1]
|
||||
(
|
||||
|
||||
@@ -209,6 +209,7 @@ class OneFormerProcessingTest(unittest.TestCase):
|
||||
self.assertTrue(hasattr(processor, "max_seq_length"))
|
||||
self.assertTrue(hasattr(processor, "task_seq_length"))
|
||||
|
||||
@unittest.skip
|
||||
def test_batch_feature(self):
|
||||
pass
|
||||
|
||||
@@ -397,6 +398,7 @@ class OneFormerProcessingTest(unittest.TestCase):
|
||||
|
||||
return inputs
|
||||
|
||||
@unittest.skip
|
||||
def test_init_without_params(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user