Skip to content

Commit

Permalink
fix: fix TestSyncer to avoid password test
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Mar 27, 2024
1 parent 275f78b commit 858850f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/test_syncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_syncer(self):
self.assertEqual(syncer.name, name)

# Update the object
updated_password = "123456"
syncer.password = updated_password
updated_host = "Updated Host"
syncer.host = updated_host
try:
sdk.update_syncer(syncer)
except Exception as e:
Expand All @@ -84,7 +84,7 @@ def test_syncer(self):
updated_syncer = sdk.get_syncer(name)
except Exception as e:
self.fail(f"Failed to get updated object: {e}")
self.assertEqual(updated_syncer.password, updated_password)
self.assertEqual(updated_syncer.host, updated_host)

# Delete the object
try:
Expand Down

0 comments on commit 858850f

Please sign in to comment.