docstr: Tests that ``NotImplementedError`` is raised when attempting to perform a test pass.
docstr_tok: ["Tests","that","``","NotImplementedError","``","is","raised","when","attempting","to","perform","a","test","pass","."]
code: 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)
          )
  
file_path: lightning-flash/tests/tabular/forecasting/test_model.py
imports: from typing import Any
  import flash
  import pytest
  import torch
  from flash import DataKeys
  from flash.core.utilities.imports import _TOPIC_TABULAR_AVAILABLE
  from flash.tabular.forecasting import TabularForecaster
  from torch import Tensor
  from tests.helpers.task_tester import StaticDataset, TaskTester
label_desc: Use image node_id 5 for calling the TestTabularForecaster obj's underlying member method code with example usage: obj.test_testing_raises(tmpdir) without return types