grappa-py / grappa

Behavior-oriented, expressive, human-friendly Python assertion library for the 21st century
http://grappa.rtfd.io
MIT License
134 stars 15 forks source link

Show available operators in case of invalid operator #33

Closed h2non closed 7 years ago

h2non commented 7 years ago

Example:

foo | should.have.some.missing.operator

Which may raise an exception such as:

AttributeError: Oops! Something went wrong:

Reason
  "missing" is not a supported operator in grappa

But you can use
  Attributes:
  - be                       a                   have

  Matchers:
  - equal                  to                  has
  - match                 includes       implements
  - contains             key               property
h2non commented 7 years ago

Implemented in v0.1.7. Closing.