Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
aed022af
Commit
aed022af
authored
Feb 27, 2019
by
Samuel GAIST
Browse files
[algorithms][tests][api] Fix CXX test
The binary handling wasn't done.
parent
baeea13f
Pipeline
#27595
failed with stage
in 15 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/web/algorithms/tests/tests_api.py
View file @
aed022af
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment