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

contains_attribute_value missing __repr__ #25

Open
ivancrneto opened this issue Jan 6, 2024 · 0 comments
Open

contains_attribute_value missing __repr__ #25

ivancrneto opened this issue Jan 6, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ivancrneto
Copy link
Owner

  1. Use mox.contains_attribute_value comparator for a check that would fail
  2. Run the test and get error printed

What is the expected output? What do you see instead?
Just like with the other Comparator classes, it should say something that tells
what's wrong. Should contain at least what is checking. Instead it displays a
useless generic Python description of the class instance:

+ function.__call__(<IgnoreArg>, <IgnoreArg>, <mox.ContainsAttributeValue 
instance at 0x8bb4b6c>) -> 0

From that message I cannot tell what attribute/value was expected and is
missing.

@ivancrneto ivancrneto added bug Something isn't working good first issue Good for newcomers labels Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant