From 6a45bd065b1f217574ee50ba42fe010fcc313fc1 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Thu, 23 Apr 2020 16:11:21 +0200
Subject: [PATCH] [toolchains][tests] Update tests for new put implementation

---
 beat/web/toolchains/tests.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/beat/web/toolchains/tests.py b/beat/web/toolchains/tests.py
index eba00d780..904c94fe7 100644
--- a/beat/web/toolchains/tests.py
+++ b/beat/web/toolchains/tests.py
@@ -1196,12 +1196,12 @@ class ToolchainUpdate(ToolchainsAPIBase):
     def test_fail_to_update_without_content_not_json_request(self):
         self.login_jackdoe()
         response = self.client.put(self.url)
-        self.checkResponse(response, 400)
+        self.checkResponse(response, 200, content_type="application/json")
 
-    def test_fail_to_update_without_content(self):
+    def test_successful_update_without_content(self):
         self.login_jackdoe()
         response = self.client.put(self.url, "{}", content_type="application/json")
-        self.checkResponse(response, 400, content_type="application/json")
+        self.checkResponse(response, 200, content_type="application/json")
 
     def test_successful_update_description_only(self):
         self.login_jackdoe()
-- 
GitLab