Skip to content

Commit

Permalink
test download from GH
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed May 16, 2022
1 parent 28d6baa commit e2e6914
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/integration/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]

0 comments on commit e2e6914

Please sign in to comment.