예제 #1
0
 def setUp(self):
     self.group = Group.objects.create(slug="mygroup")
     self.project = self.group.projects.create(
         slug="myproject",
         project_settings="PLUGINS_TRADEFED_EXTRACT_AGGREGATED: True")
     self.build = self.project.builds.create(version="tradefed-build")
     self.env = self.project.environments.create(slug="myenv")
     self.testrun = self.build.test_runs.create(environment=self.env)
     self.backend = Backend.objects.create(
         url="http://lava.server/api/v0.2/",
         name="tradefed-backend",
         implementation_type="lava")
     self.testjob = self.build.test_jobs.create(definition=definition,
                                                target=self.project,
                                                backend=self.backend,
                                                job_id="123",
                                                testrun=self.testrun)
     self.tradefed = get_plugin_instance('tradefed')
예제 #2
0
 def get_implementation(self):
     return get_plugin_instance(self.implementation)
예제 #3
0
파일: test_plugin.py 프로젝트: Linaro/squad
 def test_nonexisting(self):
     with self.assertRaises(PluginNotFound):
         get_plugin_instance('nonexisting')
예제 #4
0
파일: test_plugin.py 프로젝트: Linaro/squad
 def test_example(self):
     plugin = get_plugin_instance('example')
     self.assertIsInstance(plugin, Plugin)
예제 #5
0
 def test_nonexisting(self):
     with self.assertRaises(PluginNotFound):
         get_plugin_instance('nonexisting')
예제 #6
0
 def test_example(self):
     plugin = get_plugin_instance('example')
     self.assertIsInstance(plugin, Plugin)
예제 #7
0
파일: models.py 프로젝트: Linaro/squad
 def get_implementation(self):
     return get_plugin_instance(self.implementation)