Skip to content

Commit

Permalink
fixup alert python test
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Apr 11, 2022
1 parent c01e6fa commit ba36f8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bindings/python/tests/alert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,11 +970,16 @@ def test_storage_moved_failed_alert(self) -> None:

alert = wait_for(self.session, lt.storage_moved_failed_alert, timeout=5)

print(f"{alert.error.message()} : {alert.error.category().name()}")

self.assert_alert(alert, lt.alert_category.storage, "storage_moved_failed")
self.assert_torrent_alert(alert, handle)
self.assertIsInstance(alert.error.value(), int)
self.assertNotEqual(alert.error.value(), 0)
self.assertEqual(alert.error.category(), lt.system_category())
self.assertTrue(
alert.error.category() == lt.system_category()
or alert.error.category() == lt.generic_category()
)
self.assertEqual(alert.file_path(), self.file_path)
self.assertEqual(alert.op, lt.operation_t.file_rename)
self.assertEqual(alert.operation, "file_rename")
Expand Down

0 comments on commit ba36f8c

Please sign in to comment.