From 1cdd7d39b42f909e51a2bdf8e32a958518ea0bf3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 23 Nov 2021 11:26:21 +0100 Subject: [PATCH] fixing test metrics container --- tests/test_metrics.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_metrics.py b/tests/test_metrics.py index cab985d1..20242ad3 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -257,11 +257,13 @@ def test_metrics_action_status_for_containers(user: UserClient, user2: UserClien accept='text/csv', query=[('filter', {'type': ['Computer']})]) - body1 = ';bbbbbbbb;test.pdf;Trade-Container;foo@foo.com;foo2@foo.com;Supplier;False;;;;;150.0;' - body2 = ';;0;0;Trade-Container;0;0' + body1 = ';bbbbbbbb;test.pdf;Trade-Container;foo@foo.com;foo2@foo.com;Supplier;False;Recycling;;' + body2 = ';;150.0;' + body3 = ';;0;0;Trade-Container;0;0' assert len(csv_str.split('\n')) == 4 assert body1 in csv_str.split('\n')[-2] assert body2 in csv_str.split('\n')[-2] + assert body3 in csv_str.split('\n')[-2] @pytest.mark.mvp