Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
saemproject
saemref-formula
Commits
12af2886
Commit
12af2886
authored
Feb 01, 2017
by
Sylvain Thenault
Committed by
Denis Laxalde
Feb 02, 2017
Browse files
Fix tests
parent
c14203c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_saemref.py
View file @
12af2886
...
...
@@ -24,7 +24,7 @@ def test_pip_packages(PipPackage):
packages
=
PipPackage
.
get_packages
(
pip_path
=
'/home/saemref/venv/bin/pip'
)
assert
packages
[
'cubicweb'
][
'version'
].
startswith
(
"3.24"
)
assert
map
(
int
,
packages
[
'cubicweb'
][
'version'
].
split
(
'.'
))
>=
[
3
,
24
,
5
]
assert
packages
[
'cubicweb-saem-ref'
].
startswith
(
"0.14.0"
)
assert
packages
[
'cubicweb-saem-ref'
]
[
'version'
]
.
startswith
(
"0.14.0"
)
@
pytest
.
mark
.
parametrize
(
"name, version"
,
[
...
...
@@ -80,5 +80,5 @@ def test_saemref_running(Process, Service, Socket, Command, supervisor_service_n
def
test_saemref_sync_source_cronjob
(
Command
):
jobs
=
Command
.
check_output
(
"crontab -u saemref -l"
)
.
splitlines
()
assert
'
* */1 * * * CW_MODE=user
cubicweb-ctl source-sync --loglevel error saemref'
in
jobs
jobs
=
Command
.
check_output
(
"crontab -u saemref -l"
)
assert
'cubicweb-ctl source-sync --loglevel error saemref'
in
jobs
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