Skip to content

Several fields are incorrect when testcase is initialized from search #24

Description

@lukaszachy

Seems that fields (e.g. setup) which are not returned by TestCase.filter xmlrpc call are set to None but should be made 'unknown/unfetched' instead.

Compare output of

>importnitrate>testcases=list(nitrate.TestCase.search(script='SOME_SCRIPT'))
>fortcintestcases:
print(tc.setup)
NoneNone

With asking explicitly for fetch:

>fortcintestcases:
tc._fetch() print(tc.setup)
<p>Test</p><p>Test</p>

When TestCase is initialized via case_id then all fields work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions