From cc3d131f503b34ae972dbed94a0b5fde567aab92 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 9 Jan 2017 14:54:43 -0800 Subject: [PATCH] Fix group_by test to work with jinja2 >= 2.9. --- test/integration/targets/group_by/test_group_by.yml | 4 ++-- test/runner/requirements/constraints.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration/targets/group_by/test_group_by.yml b/test/integration/targets/group_by/test_group_by.yml index 87d1809e8da..3c299aa7281 100644 --- a/test/integration/targets/group_by/test_group_by.yml +++ b/test/integration/targets/group_by/test_group_by.yml @@ -25,10 +25,10 @@ group_by: key={{ genus }} - name: group by first three letters of genus with key in quotes - group_by: key="{{ genus | truncate(3, true, '') }}" + group_by: key="{{ genus[:3] }}" - name: group by first two letters of genus with key not in quotes - group_by: key={{ genus | truncate(2, true, '') }} + group_by: key={{ genus[:2] }} - name: group by genus in uppercase using complex args group_by: { key: "{{ genus | upper() }}" } diff --git a/test/runner/requirements/constraints.txt b/test/runner/requirements/constraints.txt index bafc23867fc..ec8e8a069ba 100644 --- a/test/runner/requirements/constraints.txt +++ b/test/runner/requirements/constraints.txt @@ -1,3 +1,2 @@ coverage >= 4.2 -jinja2 < 2.9 # 2.9 introduces changes which break tests pywinrm >= 0.2.1 # 0.1.1 required, but 0.2.1 provides better performance