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

Some functions use standard enum value and raise exception when verifying it. #87

Open
TruongMinh89 opened this issue Jun 28, 2022 · 0 comments

Comments

@TruongMinh89
Copy link

In test_run.py:
def create_incident_report(test_run, test_record, test_case):
project_id = test_run.project_id
status = 'open'
...
incident_report.add_linked_item(test_case.work_item_id, "triggered_by")
-> status variable is assigned to fixed string value that could be another value in non-standard configuration. E.g. 'draft', 'triggeredBy'

Similar with _status_change(self) function that was mentioned in other bug ("notrun", "finished", "inprogress")
Similar with function add_test_record_by_fields. The fixed enum Id is "result", in my project, it is "testing/test-result" (shared enum). _cls_suds_map of TestRecord also use "enum_id": "result"

I think we need to have a solution to deal with this kind of changes. Otherwise the package cannot work with customized configuration without changing inside the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant