Skip to content
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

Assertion hook doesn't work #9

Open
CharlesB2 opened this issue Apr 4, 2022 · 0 comments
Open

Assertion hook doesn't work #9

CharlesB2 opened this issue Apr 4, 2022 · 0 comments

Comments

@CharlesB2
Copy link

Hello,

With Pytest 7.1 and Pytest-voluptuous 1.2.0, I don't get the proper assertion hook with assert S(schema) == some_dict:

Test session starts (platform: linux, Python 3.10.3, pytest 7.1.1, pytest-sugar 0.9.4)
cachedir: .pytest_cache
django: settings: ward_run_app.test_settings (from option)
rootdir: /app
plugins: Faker-13.3.4, forked-1.4.0, timeout-2.1.0, voluptuous-1.2.0, cov-3.0.0, xdist-2.5.0, profiling-1.7.0, sugar-0.9.4, icdiff-0.5, django-4.5.2, socket-0.5.1

    assert S(SCHEMA) == dict(data)
E   AssertionError: assert equals failed
E     <Schema({'id': <class 'int'>}, extra=PREVENT_EXTRA,
E required=True) 
E. object at 0xffff817f5f90>
E                                                                              {
E                                                                               'id': "hello"
E                                                                               }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant