diff --git a/beat/web/databases/tests.py b/beat/web/databases/tests.py index cd081b8ccd50221c519f97c301f292dc59a8d0d5..b7159215fc1282f3e1b5ee4c059ace3aeb46e29a 100644 --- a/beat/web/databases/tests.py +++ b/beat/web/databases/tests.py @@ -98,7 +98,9 @@ class DatabaseCreationAPI(DatabaseAPIBase): self.client.login(username=settings.SYSTEM_ACCOUNT, password=TEST_PWD) response = self.client.post( self.url, - json.dumps({"name": self.db_name, "declaration": self.DATABASE}), + json.dumps( + {"name": self.db_name, "version": 1, "declaration": self.DATABASE} + ), content_type="application/json", ) @@ -116,7 +118,9 @@ class DatabaseCreationAPI(DatabaseAPIBase): response = self.client.post( self.url, - json.dumps({"name": self.db_name, "declaration": self.DATABASE}), + json.dumps( + {"name": self.db_name, "version": 1, "declaration": self.DATABASE} + ), content_type="application/json", )