Skip to content

Commit

Permalink
Mark preset tests as large (keras-team#1942)
Browse files Browse the repository at this point in the history
* fix tests

* fix test

* Update preset_utils_test.py
  • Loading branch information
divyashreepathihalli authored and ushareng committed Oct 24, 2024
1 parent 150fae2 commit 500a2e9
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 500a2e9

Please sign in to comment.