diff options
author | Petr Šplíchal <psplicha@redhat.com> | 2011-08-19 13:24:40 +0200 |
---|---|---|
committer | Petr Šplíchal <psplicha@redhat.com> | 2011-08-19 13:31:07 +0200 |
commit | 57661090cd1101e5cfdc5ba099bfdd905727b5ad (patch) | |
tree | bd392ffa3e6114078af5c03a8cb8853804b955f5 | |
parent | de32baa3eacf2d443878736d56e1f47e4be72ec0 (diff) | |
download | python-nitrate-57661090cd1101e5cfdc5ba099bfdd905727b5ad.tar.gz python-nitrate-57661090cd1101e5cfdc5ba099bfdd905727b5ad.tar.xz python-nitrate-57661090cd1101e5cfdc5ba099bfdd905727b5ad.zip |
Nitrate: TestRun's product is accessible through it's build
-rw-r--r-- | Nitrate.py | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -1876,8 +1876,6 @@ class TestRun(Mutable): doc="Manager responsible for this test run.") notes = property(_getter("notes"), _setter("notes"), doc="Test run notes.") - product = property(_getter("product"), _setter("product"), - doc="Product relevant for this test run.") status = property(_getter("status"), _setter("status"), doc="Test run status") summary = property(_getter("summary"), _setter("summary"), @@ -1921,8 +1919,8 @@ class TestRun(Mutable): parameters are optional and have the following defaults: build ..... "unspecified" - product ... test plan product - version ... test plan product version + product ... test run product + version ... test run product version summary ... <test plan name> on <build> notes ..... "" manager ... current user @@ -2059,9 +2057,6 @@ class TestRun(Mutable): self._tester = User(testrunhash["default_tester_id"]) self._testplan = TestPlan(testrunhash["plan_id"]) self._time = testrunhash["estimated_time"] - # Work around BZ#716233 (uses build product) - self._product = Product(id=self.build.product.id, - version=testrunhash["product_version"]) self._tags = RunTags(self) def _update(self): @@ -2074,8 +2069,8 @@ class TestRun(Mutable): hash["estimated_time"] = self.time hash["manager"] = self.manager.id hash["notes"] = self.notes - hash["product"] = self.product.id - hash["product_version"] = self.product.version.id + # This is required until BZ#731982 is fixed + hash["product"] = self.build.product.id hash["status"] = self.status.id hash["summary"] = self.summary |