-
Notifications
You must be signed in to change notification settings - Fork 262
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
Python 3 support for testing #220
Comments
Thanks! I made these changes in 0.5.38. Let me know if you find any problems with it. |
Just one comment - I had to move the location of |
Did you try creating empty |
I am keeping this issue open because maybe it makes sense to transition to |
I didn't try that! If it works, that's great. I'll try it next time I work on my docassemble project. |
I migrated all testing to Aloe and it seems to work, so I am closing this issue. Thanks! |
Behavior driven testing currently relies on Lettuce. However, Lettuce doesn't seem to work on Python 3, based on my difficulties using it and this issue:
Aloe seems to be a good replacement for Python 3 users. I was able to get Aloe up and running with only the following minor changes. Would it be possible to make these changes and mention them in the documentation?
docassemble.py
tests/features/steps/docassemble.py
renamed totests/features/__init.py__
from lettuce import step, world
changed tofrom aloe import step, world
@step('I spend at least ([0-9]+) seconds? on each page')
changed to@step(r'I spend at least ([0-9]+) seconds? on each page')
terrain.py
from aloe import *
tear_down()
function didn't work out of the box. I made it work by removing functionality, but it might be possible to work while retaining all the original functionality, it would just require some investigation. My current working function looks like:Documentation
Please let me know if you have any questions about the above. I'm happy to help implement the above changes if the maintainers agree they are warranted.
The text was updated successfully, but these errors were encountered: