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

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

Open
lukaszachy opened this issue Oct 1, 2020 · 0 comments
Open
Labels

Comments

@lukaszachy
Copy link
Collaborator

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

> import nitrate
> testcases = list(nitrate.TestCase.search(script='SOME_SCRIPT'))
> for tc in testcases:
      print(tc.setup)
None
None

With asking explicitly for fetch:

> for tc in testcases:
      tc._fetch()      
      print(tc.setup)
<p> Test </p>
<p> Test </p>

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

@psss psss added the bug label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants