Skip to content

TESTed - Python: how to test multiple outputs of a function? #5399

Discussion options

You must be logged in to vote

YAML only supports lists, so you need to use tags to "cast" the value to the correct type:

- expression: "ipv4_informatie('192.168.1.10')"
  return: !tuple ['C', '192.168.1.0', '255.255.255.0', '192.168.1.255']

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcothijs
Comment options

Answer selected by marcothijs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants