Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions keras_hub/src/utils/preset_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


class PresetUtilsTest(TestCase):
@pytest.mark.large
def test_preset_errors(self):
with self.assertRaisesRegex(ValueError, "must be a string"):
AlbertTextClassifier.from_preset(AlbertTextClassifier)
Expand All @@ -34,6 +35,7 @@ def test_preset_errors(self):
with self.assertRaisesRegex(ValueError, "class keras_hub>BortBackbone"):
BertBackbone.from_preset(preset_dir)

@pytest.mark.large
def test_upload_empty_preset(self):
temp_dir = self.get_temp_dir()
empty_preset = os.path.join(temp_dir, "empty")
Expand Down
Loading