mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-05 09:18:53 +00:00
style(tests): reflow the onlyoffice deadline assertions the way autoformat writes them
The second post-merge quality-high pass reported '1 file reformatted' and wrapped two long assertIn calls. Parsing both revisions yields an identical AST, so only the line breaks moved. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ac36bc30e0
commit
e8e94e89ef
1 file changed
+7
-2
@@ -15,13 +15,18 @@ class TestOnlyofficeCheckDeadline(unittest.TestCase):
|
||||
def test_the_deadline_is_set_before_the_check(self) -> None:
|
||||
deadline, check = self.tasks
|
||||
self.assertIn("nextcloud_onlyoffice_check_deadline", deadline["set_fact"])
|
||||
self.assertIn("lookup('timeout'", deadline["set_fact"]["nextcloud_onlyoffice_check_deadline"])
|
||||
self.assertIn(
|
||||
"lookup('timeout'",
|
||||
deadline["set_fact"]["nextcloud_onlyoffice_check_deadline"],
|
||||
)
|
||||
self.assertEqual(check["register"], "nextcloud_onlyoffice_check")
|
||||
|
||||
def test_the_retries_stop_at_the_deadline(self) -> None:
|
||||
until = self.tasks[1]["until"]
|
||||
self.assertIn("nextcloud_onlyoffice_check.rc == 0", until)
|
||||
self.assertIn("now(utc=true).timestamp() > nextcloud_onlyoffice_check_deadline", until)
|
||||
self.assertIn(
|
||||
"now(utc=true).timestamp() > nextcloud_onlyoffice_check_deadline", until
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user