I managed to solve the bug by adding
import pretty
in the __init__.py file in the formatter directory:
./eggs/behave-1.2.3-py2.7.egg/behave/formatter/__init__.py:1:import
pretty
Unfortunately, new errors occured.
File "/home/jeroen/workspace/oerpscenario/features/steps/tools.py", line 5, in
<module>
import openerp
ImportError: No module named openerp
which I fixed by adding:
import sys
sys.path.append('/home/jeroen/workspace/openerp7/server')
In the ./features/steps/tools.py file.
Now, after running:
/home/jeroen/workspace/oerpscenario/bin/behave -k
/home/jeroen/workspace/oerpscenario/features/oerp_addons/product/product_sample.feature
The programm seems to work, but soon after it stops, due to a missing
function:
"
@product @product_sample
Feature: Create the needed product #
features/oerp_addons/product/product_sample.feature:13
Scenario: Test product categories #
features/oerp_addons/product/product_sample.feature:14
Given there is a product category named "Devices"Traceback (most recent
call last):
File "/home/jeroen/workspace/oerpscenario/bin/behave", line 42, in <module>
sys.exit(behave.__main__.main())
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/__main__.py",
line 111, in main
failed = runner.run()
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/runner.py",
line 474, in run
return self.run_with_paths()
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/runner.py",
line 504, in run_with_paths
failed = feature.run(self)
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/model.py",
line 410, in run
failed = scenario.run(runner)
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/model.py",
line 687, in run
if not step.run(runner):
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/model.py",
line 1012, in run
formatter.match(NoMatch())
File
"/home/jeroen/workspace/oerpscenario/eggs/behave-1.2.3-py2.7.egg/behave/formatter/pretty.py",
line 149, in match
self._match.location, self.monochrome)
File "/home/jeroen/workspace/oerpscenario/features/support/behave_better.py",
line 115, in print_step
location = self.indented_location(location, proceed)
AttributeError: 'PrettyFormatter' object has no attribute 'indented_location'
"
I am stuck now, I have tried some things, for example adding an
indented_location function (which does not do so much),
but this gives new problems.
Does any has an idea what is going on here?
regards,
Jeroen
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OERPScenario.
https://bugs.launchpad.net/bugs/1200155
Title:
better behave not compatible with version 1.2.3
Status in OpenERP Scenario : Functional tests by Camptocamp:
Confirmed
Bug description:
Hello,
behave_better is not compatible with version 1.2.3 of behave.
Regards
Nicolas
_test_xxxxxx/parts/account-financial-tools/account_credit_control/scenarios/
Traceback (most recent call last):
File "./bin/behave", line 47, in <module>
behave.__main__.main()
File
"/srv/openerp/.buildout/eggs/behave-1.2.3-py2.6.egg/behave/__main__.py", line
111, in main
failed = runner.run()
File "/srv/openerp/.buildout/eggs/behave-1.2.3-py2.6.egg/behave/runner.py",
line 474, in run
return self.run_with_paths()
File "/srv/openerp/.buildout/eggs/behave-1.2.3-py2.6.egg/behave/runner.py",
line 477, in run_with_paths
self.load_hooks()
File "/srv/openerp/.buildout/eggs/behave-1.2.3-py2.6.egg/behave/runner.py",
line 437, in load_hooks
exec_file(hooks_path, self.hooks)
File "/srv/openerp/.buildout/eggs/behave-1.2.3-py2.6.egg/behave/runner.py",
line 283, in exec_file
execfile(filename, globals, locals)
File
"/srv/openerp/instances/openerp_7.0/Scenario/OERPScenario/features/environment.py",
line 3, in <module>
from support import tools, behave_better
File
"/srv/openerp/instances/openerp_7.0/Scenario/OERPScenario/features/support/behave_better.py",
line 48, in <module>
class PrettyFormatter(formatter.pretty.PrettyFormatter):
AttributeError: 'module' object has no attribute 'pretty'
To manage notifications about this bug go to:
https://bugs.launchpad.net/oerpscenario/+bug/1200155/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp