class_docstr: Base class for testing Profet tasks.
class_docstr_tok: ["Base","class","for","testing","Profet","tasks","."]
docstr: Test to make sure that the fixture we use to create fake profet data works correctly.
  
  The `mock_load_data` fixture should be automatically used if we don't have the real data
  downloaded.
docstr_tok: ["Test","to","make","sure","that","the","fixture","we","use","to","create","fake","profet","data","works","correctly",".","The","`","mock_load_data","`","fixture","should","be","automatically","used","if","we","do","n't","have","the","real","data","downloaded","."]
code: def test_mock_load_data_fixture_when_data_isnt_available(
      self, tmp_path_factory
  ):
      """Test to make sure that the fixture we use to create fake profet data works correctly.
  
      The `mock_load_data` fixture should be automatically used if we don't have the real data
      downloaded.
      """
      fake_input_dir: Path = tmp_path_factory.mktemp("profet_data")
  
      # We expect the `load_data` function to NOT attempt to download the dataset, hence the timeout.
      fake_x, fake_y, fake_c = self.Task.ModelConfig().load_data(fake_input_dir)  # type: ignore
      # NOTE: This might look a bit weird, but it's consistent for each of the real datasets.
      assert fake_x.shape[0] == fake_y.shape[1] == fake_c.shape[1]
  
imports: from dataclasses import asdict, replace
  from logging import getLogger
  from pathlib import Path
  from typing import ClassVar, Type
  import numpy
  import pytest
  from _pytest.tmpdir import TempPathFactory
  from orion.algo.space import Space
  from typing import List, Union, overload
  from pytest_mock import MockerFixture
  from orion.benchmark.task.profet.profet_task import MetaModelConfig, ProfetTask
  from orion.core.worker.trial import Trial
  from .conftest import REAL_PROFET_DATA_DIR, is_nonempty_dir
label_desc: Use image node_id 2 for calling the ProfetTaskTests obj's underlying member method code with example usage: obj.test_mock_load_data_fixture_when_data_isnt_available(tmp_path_factory) without return types