-
Notifications
You must be signed in to change notification settings - Fork 393
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
Flow integration tests support #100
Comments
The test api is not public and unsupported for now. The tests errors messages now are far away from the real issues. Please, first ensure that flow forks fine with manually access. |
@kmmbvnr I understand that, but we can't just not do unit tests. For now we can fall back to manually executing all |
The internal testing framework works well for viewflow examples itself well. I can't spot what's wrong with your code from the assertion error message. |
I'll look more into it. Should I find any bug, I'll create a PR. |
BTW, I found the issue. It's just that you can't execute a task when he's not assigned. All you need is a better exception. And all is fine. |
@codingjoe I am in the same boat trying to create tests but cannot get past executing a front end task, I have done the user assignment via response = self.client.post(
'/workflow/mrt/ram_change/changeramsize/{}/perform_approval/{}/'.format(process['id'], latest_task['id']),
data={'approve': True}
) I am getting |
OK, after some digging, I need to supply
|
The error seems to be here:
https://github.com/viewflow/viewflow/blob/master/viewflow/test.py#L76
I made sure that I setup the URL as stated in the documentation.
AssertionError: PATH_INFO doesn't start with /: 'None
The text was updated successfully, but these errors were encountered: