Skip to content

Commit

Permalink
Fixed test_versioned bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed May 4, 2018
1 parent 3c79800 commit eb877fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sciunit/unit_test/utils_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ def test_import_module_from_path(self):
self.assertEqual(module.value,42)

def test_versioned(self):
from sciunit.utils import Versioned
from sciunit.models import ConstModel
class VersionedModel(ConstModel,Versioned):
pass
m = VersionedModel(37)

m = ConstModel(37)
print("Commit hash is %s" % m.version)
print("Remote URL is %s" % m.remote_url)
self.assertTrue('sciunit' in m.remote_url)

0 comments on commit eb877fa

Please sign in to comment.