From ed2408c7042af0061b95f9d19056894210ba910d Mon Sep 17 00:00:00 2001 From: Arthur Flam Date: Sun, 20 Dec 2020 10:08:37 +0200 Subject: [PATCH] Check configs are expanded --- tests/test_iterators.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_iterators.py b/tests/test_iterators.py index e593bb08..9e45c2f5 100755 --- a/tests/test_iterators.py +++ b/tests/test_iterators.py @@ -117,6 +117,9 @@ def get_batch(batch): batches = get_batch('my-alias') self.assertEqual(len(batches), 2) + batches = get_batch('expand-lists-to-work-well-with-aliases') + self.assertEqual(batches[0].configurations, ['base', 'delta1', 'delta2']) + # batches-can-be-paths batches = get_batch('../cli_tests/dir') self.assertEqual(len(batches), 1) @@ -211,6 +214,13 @@ def get_batch(batch): - "-DD" #=> configurations == ["base", "low-light", {"cde": ["-DD"]}] +expand-lists-to-work-well-with-aliases: + configurations: + - base + - [delta1, delta2] + inputs: + - a.txt: + aliases: my-alias: - my-batch