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:
amyeroberts
2024-06-26 21:59:08 +01:00
committed by GitHub
parent 1f9f57ab4c
commit 1de7dc7403
254 changed files with 1721 additions and 1298 deletions

View File

@@ -213,6 +213,7 @@ class OneFormerImageProcessingTest(ImageProcessingTestMixin, unittest.TestCase):
return inputs
@unittest.skip
def test_init_without_params(self):
pass

View File

@@ -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]
(

View File

@@ -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