@@ -0,0 +1,755 @@
+from django.test import TestCase%0Afrom mock import patch%0A%0Afrom buildservice import tasks%0Afrom buildservice.models import Build, Repository%0A%0A%0Aclass TasksTestCase(TestCase):%0A%0A    def test_run_build_unknown_build(self):%0A        self.assertRaises(Build.DoesNotExist, tasks.run_build, -42)%0A%0A    @patch.object(Build, 'update_status')%0A    def test_run_build_ok(self, update_status):  # pylint: disable=no-self-use%0A        repo = Repository.objects.create(name='john-doe/repo')%0A        build = Build.objects.create(%0A            repository=repo,%0A            pusher_name='john-doe',%0A            branch='other',%0A            sha='1234567890abcdef',%0A            number=125%0A        )%0A        tasks.run_build(build.pk)%0A        update_status.assert_called_with('success')%0A

add tests for tasks