diff --git a/beat/web/dataformats/tests/tests_api.py b/beat/web/dataformats/tests/tests_api.py index b0b5201a64fadc36bf7be3c323cc5e2c2251593a..79f93fd7bd9657e7397e0a752c1e013927e1b34f 100644 --- a/beat/web/dataformats/tests/tests_api.py +++ b/beat/web/dataformats/tests/tests_api.py @@ -293,7 +293,9 @@ class DataFormatCreation(DataFormatsAPIBase): response = self.client.post( self.url, - json.dumps({"name": "valid-name1", "short_description": "blah"}), + json.dumps( + {"name": "valid-name1", "version": 1, "short_description": "blah"} + ), content_type="application/json", ) @@ -319,7 +321,7 @@ class DataFormatCreation(DataFormatsAPIBase): response = self.client.post( self.url, - json.dumps({"name": "valid-name1"}), + json.dumps({"name": "valid-name1", "version": 1}), content_type="application/json", ) @@ -345,7 +347,9 @@ class DataFormatCreation(DataFormatsAPIBase): response = self.client.post( self.url, - json.dumps({"name": "invalid name1", "short_description": "blah"}), + json.dumps( + {"name": "invalid name1", "version": 1, "short_description": "blah"} + ), content_type="application/json", ) @@ -371,7 +375,7 @@ class DataFormatCreation(DataFormatsAPIBase): response = self.client.post( self.url, - json.dumps({"name": "invalid name1"}), + json.dumps({"name": "invalid name1", "version": 1}), content_type="application/json", ) @@ -397,7 +401,7 @@ class DataFormatCreation(DataFormatsAPIBase): response = self.client.post( self.url, - json.dumps({"name": "format2", "description": "blah"}), + json.dumps({"name": "format2", "version": 1, "description": "blah"}), content_type="application/json", ) @@ -440,6 +444,7 @@ class DataFormatCreation(DataFormatsAPIBase): json.dumps( { "name": "valid-name1", + "version": 1, "short_description": "blah", "declaration": {"value": "int32"}, }