Beispiel #1
0
 def setUpTestData(cls):
     cls.test_run = factories.TestRunFactory(summary='Old summary')
     cls.url = reverse('testruns-edit', args=[cls.test_run.pk])
     cls.new_build = factories.BuildFactory(name='FastTest', product=cls.test_run.plan.product)
     intern = factories.UserFactory(username='******',
                                    email='*****@*****.**')
     cls.post_data = {
         'summary': 'New run summary',
         'build': cls.new_build.pk,
         'manager': cls.test_run.manager.email,
         'default_tester': intern.email,
         'notes': 'New run notes',
     }
     super().setUpTestData()
Beispiel #2
0
 def setUpTestData(cls):
     cls.test_run = factories.TestRunFactory(summary="Old summary")
     cls.url = reverse("testruns-edit", args=[cls.test_run.pk])
     cls.new_build = factories.BuildFactory(
         name="FastTest", version=cls.test_run.plan.product_version
     )
     intern = factories.UserFactory(username="******", email="*****@*****.**")
     cls.post_data = {
         "summary": "New run summary",
         "build": cls.new_build.pk,
         "manager": cls.test_run.manager.email,
         "default_tester": intern.email,
         "notes": "New run notes",
         "product_version": cls.test_run.plan.product_version.pk,
         "plan": cls.test_run.plan.pk,
     }
     super().setUpTestData()