From 7668180bd6da2a2f9bc25c8bd72971ea9bc13c1b Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 9 Apr 2020 18:02:23 +0200 Subject: [PATCH] [plotters][tests] Add missing version field to concerned tests --- beat/web/plotters/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beat/web/plotters/tests.py b/beat/web/plotters/tests.py index 0ddc21ae5..72c84c893 100644 --- a/beat/web/plotters/tests.py +++ b/beat/web/plotters/tests.py @@ -81,6 +81,7 @@ class PlotterParameterTestCase(APITestCase): self.data_plotter = { "author": self.plot.username, "name": "plotter_test", + "version": 1, "short_description": "some description plotter", "description": "some longer description plotter", "declaration": { @@ -100,6 +101,7 @@ class PlotterParameterTestCase(APITestCase): self.data = { "name": "plotterparameter1", + "version": 1, "short_description": "some description", "description": "some longer description", "plotter": self.plotter.id, @@ -107,6 +109,7 @@ class PlotterParameterTestCase(APITestCase): self.data2 = { "name": "plotterparameter2", + "version": 1, "short_description": "some description2", "description": "some longer description2", "plotter": self.plotter.id, @@ -154,7 +157,7 @@ class PlotterParameterCreationTestCase(PlotterParameterTestCase): self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual( json.loads(response.content)["non_field_errors"][0], - "This plotterparameter name already exists on this account", + "plotterparameter plotterparameter1 version 1 already exists on this account", ) -- GitLab