diff --git a/beat/web/algorithms/tests/tests_api.py b/beat/web/algorithms/tests/tests_api.py index 4361695941002b383691a61cc40a31818b56a978..7c7ada18325a898c6a8c6874b542ee4cff1492ce 100755 --- a/beat/web/algorithms/tests/tests_api.py +++ b/beat/web/algorithms/tests/tests_api.py @@ -1063,6 +1063,16 @@ class AlgorithmCreation(AlgorithmsAPIBase): self.assertEqual(algorithm.description, b"blah") self.assertEqual(algorithm.language, Code.CXX) self.assertFalse(algorithm.valid()) + + url = reverse("api_algorithms:binary", args=["jackdoe", "valid-name1", 1]) + + updated_binary_file = SimpleUploadedFile( + "algo.so", AlgorithmsAPIBase.BINARY, content_type="application/octet-stream" + ) + + response = self.client.post(url, {"binary": updated_binary_file}) + self.checkResponse(response, 204) + self.checkAlgorithm( algorithm, declaration=AlgorithmsAPIBase.CXX_DECLARATION, code=None )