diff --git a/runbot/tests/common.py b/runbot/tests/common.py index 0879fb9f..3406f5e9 100644 --- a/runbot/tests/common.py +++ b/runbot/tests/common.py @@ -44,7 +44,8 @@ class RunbotCase(TransactionCase): commiter_email, subject, author, - author_email)] + author_email, + 't' + sha[1:])] def setUp(self): super().setUp() diff --git a/runbot/tests/test_repo.py b/runbot/tests/test_repo.py index cccc96f8..ff2ad23e 100644 --- a/runbot/tests/test_repo.py +++ b/runbot/tests/test_repo.py @@ -76,7 +76,8 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'Server subject', 'Marc Bidule', - '')] + '', + 't0d0caca')] self.commit_list[self.repo_server.id] = first_commit @@ -104,7 +105,8 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'Addons subject', 'Marc Bidule', - '')] + '', + 'teadbeef')] repos._update_batches() @@ -132,7 +134,9 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'Another subject', 'Marc Bidule', - '')] + '', + 't0d0caca', + )] # Create Batches repos._update_batches() @@ -162,7 +166,8 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'A new subject', 'Marc Bidule', - '' + '', + 't00b', ), ( 'refs/%s/pull/123' % self.remote_server.remote_name, @@ -172,7 +177,8 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'A new subject', 'Marc Bidule', - '' + '', + 't00b', )] # Create Batches @@ -212,7 +218,9 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'A last subject', 'Marc Bidule', - '')] + '', + 'tead1234', + )] repos._update_batches() @@ -266,7 +274,9 @@ class TestRepo(RunbotCaseMinimalSetup): '', 'A nice subject', 'Marc Bidule', - '']) + '', + 't0d0caca %s' % i, + ]) inserted_time = time.time() _logger.info('Insert took: %ssec', (inserted_time - start_time)) repo._update_batches()