gabrielfalcao/lettuce — pull request #299 by akaihola (2012-11-16 11:05:22+00:00)
Title: Exception in case of an import problem is not helpful

If there's an import problem in the code which is being tested, the exception is not very helpful:

$ ./manage.py harvest
Creating test database for alias 'default'...
Destroying old test database 'default'...
Django's builtin server is running at 0.0.0.0:8000
Traceback (most recent call last):
File "lettuce/django/management/commands/harvest.py", line 134, in handle
result = runner.run()
File "lettuce/__init__.py", line 131, in run
self.loader.find_and_load_step_definitions()
File "lettuce/fs.py", line 49, in find_and_load_step_definitions
raise e
ValueError: Attempted relative import in non-package
Destroying test database for alias 'default'...