You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For tests relying on properly set roles, the re-assignment of the user requires two steps:
1. Adds support for cht-core v3.12
2. New interface harness.userRoles and associated handles in the "defaults file" for setting the current user's assigned role. I think we might want to improve this later Improved functionality for setting userRoles #152, and if reviewer has any immediate suggestions please indicate.
3. Adds version-aware tests cht-core for cht-scripts-api (works >=v3.12 and doesn't work <v3.12)
Refactoring:
Currently tests for tasks/targets are written against a compiled app_settings.json file without the source. That's tough to work with and tough to understand, so this adds a new project with source for unit tests. For now, it keeps the old tests too.
Is your feature request related to a problem? Please describe.
For tests relying on properly set roles, the re-assignment of the user requires two steps:
It would be nice to just set
harness.user = 'chw';
and not have to worry about setting two things.Describe the solution you'd like
Can
harness.userRoles
be an object which maps the user's contact_type to a default set of roles?Or it could be a function.
The text was updated successfully, but these errors were encountered: