Skip to content

Commit

Permalink
Run submisson test less often
Browse files Browse the repository at this point in the history
Spamming to the poor search index with test models
  • Loading branch information
WardLT committed Aug 25, 2020
1 parent cd2da0c commit e1bd8f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlhub_sdk/tests/test_dlhub_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# Check if we are on travis
# See: https://blog.travis-ci.com/august-2012-upcoming-ci-environment-updates
is_travis = 'HAS_JOSH_K_SEAL_OF_APPROVAL' in os.environ
is_tag = len(os.environ.get('TRAVIS_TAG', '')) > 1


class TestClient(TestCase):
Expand Down Expand Up @@ -51,7 +52,7 @@ def test_run(self):
self.assertIsInstance(task_id, DLHubFuture)
self.assertEqual('Hello', task_id.result(timeout=60))

@skipUnless(is_travis, 'Publish test only runs on Travis')
@skipUnless(is_tag and is_travis, 'Publish test only runs on tagged builds on Travis')
def test_submit(self):
# Make an example function
model = PythonStaticMethodModel.create_model('numpy.linalg', 'norm')
Expand Down

0 comments on commit e1bd8f4

Please sign in to comment.