Open mathewtrivett opened 6 years ago
@mathewtrivett hi! did you find a solution for this? I have the same issue :(
I'm not sure I ever found a solution but it is a compatibility issue between Python2 and Python3. One way to handle it is to only run your project with Python2 but that's likely a terrible idea if all the other modules you are using are built for python3.
Alternatively use another test framework. You won't get that BDD flavour but pytest is really great and simple to learn, results in pretty decent and clean code. Django generally has a pretty good test suite built off unittest.
I think there is an alternative if you want BDD with pytest:
@mathewtrivett Thank you for taking the time to answer back!
@michelts good to know! I will have a look at it :)
@mariaae if you didn't try Aloe and Aloe django as lettuce replacements, I recommend you do it.
Migrate from lettuce to aloe was pretty simple and it supports py3.
@mariaae @mathewtrivett @michelts if you have time (and interested) in lettuce fork which support py27 & py37 git it a try. Just trying to get some feedback from community on Python 3 support
I'm setting up lettuce to run integrations tests in a Django project. I have created a blank accounts.feature file and a blank accounts_steps.py file.
I was trying to run harvest with this setup but encounter this error and this remains when I write features file but no step definitions. I assumed that lettuce would discover the feature files but warn that the steps have not been defined.