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

Fixes #251 #256

Closed
wants to merge 2 commits into from
Closed

Fixes #251 #256

wants to merge 2 commits into from

Conversation

daviskirk
Copy link

  • add test

- add test
@daviskirk
Copy link
Author

daviskirk commented Aug 26, 2016

As this wasn't really related to #250 after all I looked at this as well while I was at it. As far as I can see, this is now the intended behavior.

I added a test for oneof, assuming the other *of rules should work the same. Otherwise I can add the others too.... it might be alot of duplicated code that might just result in harder to maintain tests (As a side note I saw #213 and pytest parametrized tests are great cutting down on that sort of stuff).

document = {'test': {'known': 's'}}
self.validator(document, schema)
_errors = self.validator._errors
self.assertEqual(len(_errors), 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also check that there are no child-errors.

_errors[0].child_errors

- Get rid of nonsense normalization test
- Add test for child errors
@nicolaiarocci
Copy link
Member

Merged after rebase: 78704de

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants