def test_testing_raises(self, tmpdir):
        """Tests that ``NotImplementedError`` is raised when attempting to perform a test pass."""
        dataset = StaticDataset(self.example_train_sample, 4)

        args = self.task_args
        kwargs = dict(**self.task_kwargs)
        model = self.task(*args, **kwargs)

        trainer = flash.Trainer(default_root_dir=tmpdir, fast_dev_run=True)

        with pytest.raises(
            NotImplementedError, match="Backbones provided by PyTorch Forecasting don't support testing."
        ):
            trainer.test(model, model.process_test_dataset(dataset, batch_size=4))
Tests that ``NotImplementedError`` is raised when attempting to perform a test pass.
tests/tabular/forecasting/test_model.py