Skip to content

Commit

Permalink
pylxd/models/tests: Drop wait argument from tests
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Jan 9, 2025
1 parent d5cdc68 commit d976f82
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pylxd/models/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,15 @@ def test_all(self):
def test_create(self):
"""An image is created."""
fingerprint = hashlib.sha256(b"").hexdigest()
a_image = models.Image.create(self.client, b"", public=True, wait=True)
a_image = models.Image.create(self.client, b"", public=True)

self.assertIsInstance(a_image, models.Image)
self.assertEqual(fingerprint, a_image.fingerprint)

def test_create_with_metadata(self):
"""An image with metadata is created."""
fingerprint = hashlib.sha256(b"").hexdigest()
a_image = models.Image.create(
self.client, b"", metadata=b"", public=True, wait=True
)
a_image = models.Image.create(self.client, b"", metadata=b"", public=True)

self.assertIsInstance(a_image, models.Image)
self.assertEqual(fingerprint, a_image.fingerprint)
Expand All @@ -128,7 +126,7 @@ def test_create_with_metadata_streamed(self):
"""An image with metadata is created."""
fingerprint = hashlib.sha256(b"").hexdigest()
a_image = models.Image.create(
self.client, StringIO(""), metadata=StringIO(""), public=True, wait=True
self.client, StringIO(""), metadata=StringIO(""), public=True
)

self.assertIsInstance(a_image, models.Image)
Expand Down

0 comments on commit d976f82

Please sign in to comment.