Skip to content

Commit

Permalink
Update tests: try_to_load_from_cache can return None
Browse files Browse the repository at this point in the history
  • Loading branch information
cpietsch authored May 27, 2024
1 parent 8005503 commit bcc385c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def test_install_huggingface(self):
def test_install_huggingface_cached(self):
filepath = try_to_load_from_cache(
repo_id="sd-concepts-library/moebius", filename="learned_embeds.bin")

self.assertTrue(isinstance(filepath, str))
self.assertTrue(os.path.exists(filepath))
self.assertIsInstance(filepath, str)
self.assertFalse(filepath == _CACHED_NO_EXIST)
Expand Down

0 comments on commit bcc385c

Please sign in to comment.