From 293facda76a144709125c30865688dd456c7619c Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 8 Jul 2022 07:52:38 -0300 Subject: [PATCH] [Test] Enabled dep_pytool test now that we can run it on CI/CD --- tests/test_plot/test_dep_downloader.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_plot/test_dep_downloader.py b/tests/test_plot/test_dep_downloader.py index f1fc55cf..f9d35777 100644 --- a/tests/test_plot/test_dep_downloader.py +++ b/tests/test_plot/test_dep_downloader.py @@ -13,6 +13,7 @@ from . import context from kibot.mcpyrate import activate # noqa: F401 import kibot.dep_downloader as downloader import kibot.out_compress as compress +import kibot.out_kibom as kibom import kibot.log as log cov = coverage.Coverage() @@ -54,13 +55,12 @@ def test_dep_rar(test_dir, caplog, monkeypatch): try_dependency(ctx, caplog, monkeypatch, compress.__doc__, 'rar', 'rar', bin_dir) -# Needs adjusts, pip behaves differently when running as root ... -# def test_dep_pytool(test_dir, caplog, monkeypatch): -# """ Check the pytool_downloader """ -# # Create a context to get an output directory -# ctx = context.TestContext(test_dir, 'bom', 'bom') -# log.debug_level = 10 -# try_dependency(ctx, caplog, monkeypatch, kibom.__doc__, 'kibom', 'pytool', bin_dir_py) +def test_dep_pytool(test_dir, caplog, monkeypatch): + """ Check the pytool_downloader """ + # Create a context to get an output directory + ctx = context.TestContext(test_dir, 'bom', 'bom') + log.debug_level = 10 + try_dependency(ctx, caplog, monkeypatch, kibom.__doc__, 'kibom', 'pytool', bin_dir_py) def test_dep_rsvg(test_dir, caplog, monkeypatch):