From e2e6914d9b73874541b77665f20c44f0db73bc0b Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Mon, 16 May 2022 21:52:16 +0100 Subject: [PATCH] test download from GH --- test/integration/test_download.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/integration/test_download.py b/test/integration/test_download.py index af9e33e..0b784f3 100644 --- a/test/integration/test_download.py +++ b/test/integration/test_download.py @@ -136,3 +136,24 @@ def testDownloadJar(self, tmpdir): assert len(files) == 1 assert files[0].basename.endswith(".jar") assert files[0].basename.startswith('formats-api') + + +class TestDownloadGithub(Downloader): + + def setup_class(self): + self.artifact = 'insight' + + def testDownloadGithub(self, tmpdir): + with tmpdir.as_cwd(): + self.download( + '--release', '5.5.8', + '--github', 'ome/omero-insight', + '--sym', 'auto') + files = tmpdir.listdir() + assert len(files) == 3 + print([f.basename for f in files]) + assert sorted(f.basename for f in files) == [ + 'OMERO.insight', + 'OMERO.insight-5.5.8', + 'OMERO.insight-5.5.8.zip', + ]