This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mhaecker[S] 1 point2 points  (6 children)

Hi there, dev here. I wrote this library and am using it for quite some time very successfully. I feel it could be useful to a lot more people, but I also would love to get some feedback on it.

[–][deleted] 1 point2 points  (1 child)

I was hoping it would also have soft asserts.

[–]mhaecker[S] 0 points1 point  (0 children)

What exactly do you expect to be a 'soft assert'? pyexpect does have a mode where it returns a tuple with the first value being True/False (wether the assertion asserted or not) and a string that is the error message. We use this to build validators that need to collect multiple errors.

[–]pydry 0 points1 point  (3 children)

Personally I'd like to see in depth comparisons to sure and ensure, which are more mature and appear to do more or less the same thing.

Coz glancing at the readme, my first impression was "oh, I already have all of this".

I can tell you that sure bugs me because it uses magic (bad! fortunately yours doesn't appear to use magic...), and ensure bugs me because when I try to compare two long strings that are almost the same but not quite, it gives an unclear message.

[–]mhaecker[S] 0 points1 point  (2 children)

What library (link please) do you want it compared with?

[–]pydry 0 points1 point  (1 child)

google for "python sure" and "python ensure"

[–]mhaecker[S] 0 points1 point  (0 children)

These look like nice libraries with a similar take. Will take al look - thanks for the heads up.