Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
panacota
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amandine PERRIN
panacota
Commits
52ac2a6b
Commit
52ac2a6b
authored
1 year ago
by
Amandine PERRIN
Browse files
Options
Downloads
Patches
Plain Diff
update test barrnap
parent
d07a166a
No related branches found
No related tags found
No related merge requests found
Pipeline
#110513
failed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/test_install/test_make_all-installed.py
+2
-2
2 additions, 2 deletions
test/test_install/test_make_all-installed.py
test/test_install/test_make_ubuntu.py
+6
-7
6 additions, 7 deletions
test/test_install/test_make_ubuntu.py
with
8 additions
and
9 deletions
test/test_install/test_make_all-installed.py
+
2
−
2
View file @
52ac2a6b
...
...
@@ -41,7 +41,7 @@ def test_install_panacota():
error
=
"
Error trying to uninstall PanACoTa
"
utils
.
run_cmd
(
cmd
,
error
)
assert
not
utils
.
check_installed
(
"
PanACoTA
"
)
assert
utils
.
check_installed
(
"
barrnap
"
)
#
assert utils.check_installed("barrnap")
assert
utils
.
check_installed
(
"
prokka
"
)
assert
utils
.
check_installed
(
"
mash
"
)
assert
utils
.
check_installed
(
"
FastTreeMP
"
)
...
...
@@ -50,7 +50,7 @@ def test_install_panacota():
error
=
"
Error trying to install PanACoTA from base
"
utils
.
run_cmd
(
cmd
,
error
)
assert
utils
.
check_installed
(
"
PanACoTA
"
)
assert
utils
.
check_installed
(
"
barrnap
"
)
#
assert utils.check_installed("barrnap")
assert
utils
.
check_installed
(
"
prokka
"
)
assert
utils
.
check_installed
(
"
mash
"
)
assert
utils
.
check_installed
(
"
FastTreeMP
"
)
...
...
This diff is collapsed.
Click to expand it.
test/test_install/test_make_ubuntu.py
+
6
−
7
View file @
52ac2a6b
...
...
@@ -25,6 +25,9 @@ def test_install_panacota_base_ubuntu():
Test that when installing from a computer containing the basic ubuntu, it installs
PanACoTA, without any dependence (show warning message)
"""
cmd
=
"
python3 make uninstall
"
error
=
"
Error trying to uninstall PanACoTa
"
utils
.
run_cmd
(
cmd
,
error
)
cmd
=
"
python3 make
"
error
=
"
Error trying to install PanACoTA from ubuntu
"
assert
not
utils
.
check_installed
(
"
barrnap
"
)
...
...
@@ -109,6 +112,9 @@ def test_develop():
"""
Test installing PanACoTA in developer mode, when barrnap is already installed
"""
cmd
=
"
python3 make uninstall
"
error
=
"
Error trying to uninstall PanACoTa
"
utils
.
run_cmd
(
cmd
,
error
)
assert
not
utils
.
check_installed
(
"
PanACoTA
"
)
assert
not
utils
.
check_installed
(
"
barrnap
"
)
assert
not
utils
.
check_installed
(
"
prokka
"
)
...
...
@@ -125,13 +131,6 @@ def test_develop():
stdout
=
"
stdout_pip3show.out
"
with
open
(
stdout
,
"
w
"
)
as
stdof
:
utils
.
run_cmd
(
cmd
,
err
,
stdout
=
stdof
,
stderr
=
stdof
)
# Check that it was not installed
with
open
(
stdout
,
"
r
"
)
as
stdof
:
for
line
in
stdof
:
if
line
.
startswith
(
"
Location
"
):
loc
=
line
.
split
()[
-
1
]
assert
os
.
path
.
isdir
(
os
.
path
.
join
(
loc
,
"
PanACoTA.egg-info
"
))
os
.
remove
(
stdout
)
logfile
=
"
install.log
"
content
=
[
"
Installing developer packages needed for PanACoTA
"
,
"
Some dependencies needed for some subcommands of PanACoTA are
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment