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
Benoit Rousselle
bliss
Commits
e704d2ad
Commit
e704d2ad
authored
May 20, 2019
by
Matias Guijarro
Browse files
test: fixed publishing key name
parent
aa2fe36e
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/scans/test_publishing.py
View file @
e704d2ad
...
...
@@ -131,16 +131,13 @@ def test_interrupted_scan(session, redis_data_conn, scan_tmpdir):
def
test_scan_data_0d
(
session
,
redis_data_conn
):
counter_name
=
"sim_ct_gauss"
simul_counter
=
getattr
(
setup_globals
,
counter_name
)
simul_counter
=
getattr
(
setup_globals
,
"sim_ct_gauss"
)
s
=
scans
.
timescan
(
0.1
,
simul_counter
,
npoints
=
10
,
return_scan
=
True
,
save
=
False
)
assert
s
==
setup_globals
.
SCANS
[
-
1
]
# redis key is build from node name and counter name with _data suffix
# ":timer:<counter_name>:<counter_name>_data"
redis_key
=
s
.
node
.
db_name
+
f
":timer:
{
counter_name
}
:
{
counter
_
name
}
_data"
redis_key
=
s
.
node
.
db_name
+
f
":timer:
{
simul_
counter
.
full
name
}
_data"
redis_data
=
list
(
map
(
float
,
redis_data_conn
.
lrange
(
redis_key
,
0
,
-
1
)))
assert
numpy
.
array_equal
(
redis_data
,
simul_counter
.
data
)
...
...
Write
Preview
Supports
Markdown
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