-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actions #128
Actions #128
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,19 +45,22 @@ def setup_class(self): | |
self.branch = 'OMERO-DEV-latest' | ||
self.ice = '3.6' | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does "URL to be updated" mean? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant: Change URL since it uses the old ci |
||
def testDownloadNoUnzip(self, tmpdir): | ||
with tmpdir.as_cwd(): | ||
self.download('--skipunzip', '--branch', self.branch, | ||
'--ice', self.ice) | ||
files = tmpdir.listdir() | ||
assert len(files) == 1 | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadUnzip(self, tmpdir): | ||
with tmpdir.as_cwd(): | ||
self.download('--branch', self.branch, '--ice', self.ice) | ||
files = tmpdir.listdir() | ||
assert len(files) == 2 | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadUnzipDir(self, tmpdir): | ||
with tmpdir.as_cwd(): | ||
self.download('--unzipdir', 'OMERO.py', '--branch', self.branch, | ||
|
@@ -66,6 +69,7 @@ def testDownloadUnzipDir(self, tmpdir): | |
assert expected.exists() | ||
assert expected.isdir() | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadSym(self, tmpdir): | ||
with tmpdir.as_cwd(): | ||
self.download('--branch', self.branch, '--ice', self.ice, | ||
|
@@ -88,6 +92,7 @@ def testDownloadSym(self, tmpdir): | |
assert sym2 == (old_div(tmpdir, 'custom.sym')) | ||
assert sym2.isdir() | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadRelease(self, tmpdir): | ||
with tmpdir.as_cwd(): | ||
self.download('--release', 'latest', '--ice', self.ice) | ||
|
@@ -98,6 +103,7 @@ def testDownloadNonExistingArtifact(self): | |
with pytest.raises(AttributeError): | ||
self.download('-n', '--release', '5.3', '--ice', '3.3') | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadBuildNumber(self): | ||
# Old Jenkins artifacts are deleted so we can't download. | ||
# Instead assert that an AttributeError is raised. | ||
|
@@ -113,6 +119,7 @@ class TestDownloadBioFormats(Downloader): | |
def setup_class(self): | ||
self.branch = 'BIOFORMATS-DEV-latest' | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadJar(self, tmpdir): | ||
self.artifact = 'formats-api' | ||
with tmpdir.as_cwd(): | ||
|
@@ -121,6 +128,7 @@ def testDownloadJar(self, tmpdir): | |
assert len(files) == 1 | ||
assert files[0].basename == 'formats-api.jar' | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadFullFilename(self, tmpdir): | ||
self.artifact = 'formats-api' | ||
with tmpdir.as_cwd(): | ||
|
@@ -136,6 +144,7 @@ def setup_class(self): | |
self.artifact = '' | ||
self.branch = 'latest' | ||
|
||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testDownloadList(self, tmpdir): | ||
with tmpdir.as_cwd(): | ||
self.download('--branch', self.branch) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ def testSkipunzip(self): | |
self.upgrade("--skipunzip") | ||
|
||
@pytest.mark.slowtest | ||
@pytest.mark.skipif(True, reason='URL to be updated') | ||
def testUpgrade(self): | ||
args = ["--branch=OMERO-DEV-latest"] | ||
# Python 3.6 on Travis: Force OMERO to run with 2.7 instead | ||
|
@@ -58,9 +59,7 @@ def testUpgrade(self): | |
self.upgrade(*args) | ||
|
||
@pytest.mark.slowtest | ||
@pytest.mark.skipif( | ||
getenv('TRAVIS_PYTHON_VERSION') == '3.6', | ||
reason='OMERO not supported on Python 3.6') | ||
@pytest.mark.skipif(True, reason='OMERO not supported on Python 3.6') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this still hold if you've bumped to Py38? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have not re-activated the tests in this PR. I have actually skipped a good number due to URL. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Fair enough. The comment might just be slightly confusing. |
||
def testUpgradePython3(self): | ||
self.upgrade("--branch=OMERO-DEV-latest") | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/jburel/omego/actions/runs/2281780723 green