| author | Alan Dipert
<alan@tailrecursion.com> 2026-11-11 18:01:37 UTC |
| committer | Alan Dipert
<alan@tailrecursion.com> 2026-11-11 18:01:37 UTC |
| parent | f66c349e4d9133aad1d15d833539fdc4ff511699 |
| tests/test_deploy.py | +2 | -2 |
diff --git a/tests/test_deploy.py b/tests/test_deploy.py index c6164b4..c983618 100644 --- a/tests/test_deploy.py +++ b/tests/test_deploy.py @@ -15,7 +15,7 @@ class DeployTests(unittest.TestCase): 'GITHUB_REF': 'refs/heads/master', 'GITHUB_EVENT_NAME': 'workflow_dispatch', 'CHECK_TOKEN': 'check-fixture', 'PUBLISH_TOKEN': 'publish-fixture', 'SITE_DEPLOY_KEY': 'key-fixture'})) - self.run = {'id': 42, 'status': 'success', 'commit_sha': 'a' * 40, + self.ci_run = {'id': 42, 'status': 'success', 'commit_sha': 'a' * 40, 'prettyref': 'master', 'workflow_id': 'ci.yml', 'event': '', 'trigger_event': 'workflow_dispatch'} @@ -26,7 +26,7 @@ class DeployTests(unittest.TestCase): {'workflow_id': 'deploy.yml'}, {'trigger_event': 'pull_request'}): with self.subTest(change=change), patch('deploy.api', side_effect=[ {'commit': {'id': 'a' * 40}}, - {'workflow_runs': [self.run | change, self.run]}]): + {'workflow_runs': [self.ci_run | change, self.ci_run]}]): if change: with self.assertRaises(ValueError): deploy.checked_source()