Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api_tplan_platforms, remove notes property from repr #29

Closed
netzulo opened this issue Mar 16, 2018 · 0 comments
Closed

api_tplan_platforms, remove notes property from repr #29

netzulo opened this issue Mar 16, 2018 · 0 comments
Assignees

Comments

@netzulo
Copy link
Owner

netzulo commented Mar 16, 2018

At get platforms from api_tplan_platforms, remove notes property from repr function because it's showing HTML text at python sys output

>>> platforms = tlm.api_tplan_platforms(1)                                                                                                                                                                                                                                      
2018-03-16 11:16:10,611 - qatestlink - INFO - POST request:
2018-03-16 11:16:10,703 - qatestlink - INFO - POST response:
2018-03-16 11:16:10,703 - qatestlink - INFO -     status_code=200
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "qatestlink/core/testlink_manager.py", line 250, in api_tplan_platforms
    properties = data_properties['struct']['member']
TypeError: string indices must be integers
>>> platforms = tlm.api_tplan_platforms(2)                                                                                                                                                                                                                                      
2018-03-16 11:16:49,707 - qatestlink - INFO - POST request:
2018-03-16 11:16:49,817 - qatestlink - INFO - POST response:
2018-03-16 11:16:49,817 - qatestlink - INFO -     status_code=200
>>> platforms
[TPlatform: id=1, name=DEV, notes=<p>DEVelopment environment</p>, TPlatform: id=2, name=INT, notes=<table>
        <tbody>
                <tr>
                        <td>INTegration environment</td>
                </tr>
        </tbody>
</table>]
>>> 
>>> platforms[0]
TPlatform: id=1, name=DEV, notes=<p>DEVelopment environment</p>
>>> help(platforms[0])

>>> dir(platforms[0])
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_load', '_properties', '_properties_bool', '_properties_int', 'convert_name', 'id', 'name', 'notes']
>>> 
@netzulo netzulo self-assigned this Mar 16, 2018
netzulo pushed a commit that referenced this issue Mar 22, 2018
netzulo pushed a commit that referenced this issue Mar 22, 2018
+ [x] #26
+ [x] #27
+ [x] #28
+ [x] #29
+ [x] #30
+ [x] #31
+ [x] #32
netzulo added a commit that referenced this issue Mar 24, 2018
* [qatl] fix for issue #26

* [qatl] fix for issue #27

* [qatl] fix for issue #28

* [qatl] fix for issue #29

* [qatl] fix for issue #30

* [qatl] fix for issue #31

* [qatl] fix for issue #32

* [qatl] flake8 clean after issues fixes

+ [x] #26
+ [x] #27
+ [x] #28
+ [x] #29
+ [x] #30
+ [x] #31
+ [x] #32

* [qatl] fixes for py27

* [qatl] Update to v0.0.6

* [qatl] readme fix for pypi RST
@netzulo netzulo closed this as completed Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant