Action: Verification/Assertion Step
I-Dont-Remember opened this issue · 0 comments
I-Dont-Remember commented
As a user, there are times I want to assert that a certain value exists or is correct, even if there was no actual code exception raised.
This is very beneficial for integration tests of Workflow Buddy, but has potential to be useful for other domains as well - there's a reason assert
is built into Python and other languages have similar functionality.
DynamoDB querying might be a decent UX to take inspiration from:
in
- user has to give a variable to test (assumed string), and a piece of text (str) that we are expecting=/=>/<=
- We'd assume that we are given a valid int/float to parse=
is also a useful utility for strings - it can be accomplished the same way witha in b
if they are equal, so can get away with not supporting here
exists?
- base case to check that it has some value and isn't an empty string. This isn't that great.