EastAgile / robber.py

BDD / TDD assertion library for Python
MIT License
8 stars 1 forks source link

expect instance has no attribute 'throw' #18

Closed tklarryonline closed 7 years ago

tklarryonline commented 7 years ago

We in Pandoodle are using the latest build from EastAgile/robber.py but still get this error:

AttributeError: expect instance has no attribute 'throw'

Is there something wrong with the latest build from master branch?

tklarryonline commented 7 years ago

@hieueastagile Any thoughts?

oyster commented 7 years ago

Cool. Good to see our projects start using some of our open source here :-)

hieueastagile commented 7 years ago

@tklarryonline I miss this line

from robber.matchers.exception import *

in the _ init _.py, that's why it failed, I updated the code in this PR: https://github.com/EastAgile/robber.py/pull/19/files, until it is merged, you can fix it temporarily by re-install your robber.py to this specific branch instead of master

pip install -e git+https://github.com/EastAgile/robber.py@integration-tests-for-exception-matcher#egg=robber

Sorry for this inconvenience :D. I already tested it in my local, so it should work now :D.

tklarryonline commented 7 years ago

Thanks @hieueastagile :)