Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python-handel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bliss
python-handel
Commits
11eafc03
Commit
11eafc03
authored
Oct 27, 2017
by
Vincent Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix get_raw_buffer tests
parent
a47641b5
Pipeline
#1268
passed with stages
in 1 minute and 20 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tests/test_interface.py
tests/test_interface.py
+3
-4
No files found.
tests/test_interface.py
View file @
11eafc03
...
...
@@ -382,16 +382,15 @@ def test_get_raw_buffer(interface):
def
side_effect
(
channel
,
dtype
,
arg
):
if
dtype
==
b'buffer_len'
:
arg
[
0
]
=
10
arg
[
0
]
=
5
return
0
if
dtype
==
b'buffer_a'
:
for
x
in
range
(
10
):
arg
[
x
]
=
x
arg
[
0
:
5
]
=
range
(
1
,
6
)
return
0
assert
False
m
.
side_effect
=
side_effect
expected
=
numpy
.
array
(
range
(
1
0
),
dtype
=
'uint32'
)
expected
=
numpy
.
array
(
range
(
1
,
6
),
dtype
=
'uint32'
)
diff
=
interface
.
get_raw_buffer
(
1
,
'a'
)
==
expected
assert
diff
.
all
()
m
.
assert_called
()
...
...
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