-
Notifications
You must be signed in to change notification settings - Fork 112
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
Getting a strange error when decorator isn't used #134
Comments
|
As of 2.0, which we hope to release soon, type hints would warn you that you weren't calling |
OK, thanks for the information!
Alan
… On January 10, 2020 at 7:22 AM Simon Brunning ***@***.***> wrote:
AS of 2.0, which we hope to release soon, type hints would warn you that you weren't calling assert_that() properly. Other than that, I'm not sure there's much better we can do about this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #134?email_source=notifications&email_token=ANKOAQBXQR73WRDRD2PP6WTQ5CADJA5CNFSM4KEOORZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIUB5YA#issuecomment-573054688 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKOAQAA6RPU2WABPPJAGELQ5CADJANCNFSM4KEOORZQ .
|
Using this syntax:
assert_that(ixn_service.get_user_preferences(VALID_CMIS_ID).json().get('offlineVoicemailNotification'), False,
f"User preference didn't match Expected")
Instead of this syntax:
assert_that(some_service.get_user_preferences(VALID_CMIS_ID).json().get('offlineVoicemailNotification'), is_(False),
f"User preference didn't match Expected")
gives me this error:
Unable to display children:Error resolving variables Traceback (most recent call last):
File "C:\Users\Some Guy\Envs\ssp\lib\site-packages\behave\model.py", line 1329, in run
match.run(runner.context)
File "C:\Users\Some Guy\Envs\ssp\lib\site-packages\behave\matchers.py", line 98, in run
self.func(context, *args, **kwargs)
File "features\steps\offline_notification_preferences_steps.py", line 328, in step_impl
f"User preference didn't match Expected")
File "C:\Users\Some Guy\Envs\ssp\lib\site-packages\hamcrest\core\assert_that.py", line 45, in assert_that
_assert_bool(assertion=arg1, reason=arg2)
File "C:\Users\Some Guy\Envs\ssp\lib\site-packages\hamcrest\core\assert_that.py", line 64, in _assert_bool
raise AssertionError(reason)
AssertionError: Assertion failed
The text was updated successfully, but these errors were encountered: