Exemple #1
0
 def test_pbtxt_is_dataset_file(self) -> None:
     """Test if record is a valid dataset file."""
     path = "/home/user/dataset.pbtxt"
     result = is_dataset_file(path)
     self.assertFalse(result)
Exemple #2
0
def is_dataset_or_directory_entry(entry: Dict) -> bool:
    """Return if given entry should be shown on dataset list."""
    return is_dataset_file(entry["name"]) or is_directory_entry(entry)
Exemple #3
0
 def test_record_is_dataset_file(self) -> None:
     """Test if record is a valid dataset file."""
     path = "/home/user/dataset.record"
     result = is_dataset_file(path)
     self.assertTrue(result)