Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Test is a defined variable is a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Nov 27, 2020
1 parent d44542e commit c4a0ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
assert:
that:
- item.name is defined
- item.name is string
- item.name in [ "monochrome" ]
quiet: yes
loop: "{{ y_presets }}"
Expand All @@ -16,10 +17,12 @@
assert:
that:
- y_import_from is defined
- y_import_from is string
quiet: yes

- name: test if y_export_to is set correctly
assert:
that:
- y_export_to is defined
- y_export_to is string
quiet: yes

0 comments on commit c4a0ab7

Please sign in to comment.