Skip to content

Commit

Permalink
Removed doubled instance assert in test_install_huggingface_cached
Browse files Browse the repository at this point in the history
  • Loading branch information
b-g committed May 27, 2024
1 parent bcc385c commit 141ff39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@ def test_install_huggingface(self):
zoomaker = Zoomaker("zoo.yaml")
zoomaker.install()
self.assertTrue(os.path.exists("./tmp/embeddings/moebius.bin"))

@unittest.skipIf(sys.platform.startswith("win"), "Skipping on Windows")
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)

def test_install_git(self):
Expand Down

0 comments on commit 141ff39

Please sign in to comment.