MCPcopy
hub / github.com/huggingface/datasets / test_load_dataset_namespace

Method test_load_dataset_namespace

tests/test_load.py:780–788  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

778 )
779
780 def test_load_dataset_namespace(self):
781 with self.assertRaises(DatasetNotFoundError) as context:
782 datasets.load_dataset("hf-internal-testing/_dummy")
783 self.assertIn("hf-internal-testing/_dummy", str(context.exception))
784 for offline_simulation_mode in list(OfflineSimulationMode):
785 with offline(offline_simulation_mode):
786 with self.assertRaises(ConnectionError) as context:
787 datasets.load_dataset("hf-internal-testing/_dummy")
788 self.assertIn("hf-internal-testing/_dummy", str(context.exception), msg=offline_simulation_mode)
789
790
791@pytest.mark.integration

Callers

nothing calls this directly

Calls 1

offlineFunction · 0.85

Tested by

no test coverage detected