| Summary: | TestPlan missing two private attributes due to typo | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Leos Pol <lpol> |
| Component: | python-nitrate | Assignee: | Petr Šplíchal <psplicha> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | ohudlick, psplicha |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-nitrate-1.3-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-15 08:09:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Pull request: https://github.com/psss/python-nitrate/pull/4 Thanks for the patch, Leoš. Merged into master: https://github.com/psss/python-nitrate/commit/c2063b5 python-nitrate-1.3-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-687d19409b python-nitrate-1.3-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-35a106d076 python-nitrate-1.3-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-2bb9364c32 python-nitrate-1.3-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-7474e957a9 Latest packages for testing available in the copr repository: https://copr.fedorainfracloud.org/coprs/psss/python-nitrate/ With python-nitrate-1.3-1.fc22.noarch I no longer get error while trying access children and caseplans attributes. python-nitrate-1.3-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-687d19409b python-nitrate-1.3-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-2bb9364c32 python-nitrate-1.3-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7474e957a9 python-nitrate-1.3-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-35a106d076 (In reply to Leos Pol from comment #8) > With python-nitrate-1.3-1.fc22.noarch I no longer get error > while trying access children and caseplans attributes. Thanks for the verification, Leoš. python-nitrate-1.3-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. python-nitrate-1.3-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. python-nitrate-1.3-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. python-nitrate-1.3-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: Class nitrate.mutable.TestPlan missing attributes _caseplans and _children. This results into AttributeError exception whenever I try to access TestPlan instance properties caseplans and children. Version-Release number of selected component (if applicable): python-nitrate-1.2-0.fc22 How reproducible: always Steps to Reproduce: In [1]: import nitrate In [2]: nitrate.TestPlan(1).caseplans --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-41b1103bc9d7> in <module>() ----> 1 nitrate.TestPlan(1).caseplans /usr/lib/python2.7/site-packages/nitrate/base.pyc in getter(self) 61 def getter(self): 62 # Initialize the attribute unless already done ---> 63 if getattr(self, "_" + field) is NitrateNone: 64 self._fetch() 65 # Return self._field AttributeError: 'TestPlan' object has no attribute '_caseplans' In [3]: nitrate.TestPlan(1)._attributes Out[3]: ['author', 'caseplanschildren', 'components', 'name', 'owner', 'parent', 'product', 'status', 'tags', 'testcases', 'testruns', 'type', 'version'] Actual results: Traceback "caseplanschildren" in _attributes Expected results: fetching caseplans "caseplans" and "children" in _attributes Additional info: