Skip to content

Commit

Permalink
[DEBUG] avoid get_version call to test failure cause
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Mar 27, 2019
1 parent 8c1cb0b commit a138adf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_magpie_api.py
Expand Up @@ -32,7 +32,9 @@ class TestCase_MagpieAPI_NoAuth_Local(ti.Interface_MagpieAPI_NoAuth, unittest.Te
def setUpClass(cls):
cls.app = utils.get_test_magpie_app()
cls.json_headers = utils.get_headers(cls.app, {'Accept': JSON_TYPE, 'Content-Type': JSON_TYPE})
# FIXME: use get_version()
cls.version = __meta__.__version__
#cls.version = utils.TestSetup.get_Version(cls)
cls.cookies = None
cls.usr = get_constant('MAGPIE_ANONYMOUS_USER')
cls.grp = get_constant('MAGPIE_ANONYMOUS_GROUP')
Expand Down Expand Up @@ -71,7 +73,9 @@ def setUpClass(cls):
cls.pwd = get_constant('MAGPIE_TEST_ADMIN_PASSWORD')
cls.json_headers = utils.get_headers(cls.app, {'Accept': JSON_TYPE, 'Content-Type': JSON_TYPE})
cls.cookies = None
cls.version = utils.TestSetup.get_Version(cls)
# FIXME: use get_version()
cls.version = __meta__.__version__
#cls.version = utils.TestSetup.get_Version(cls)
# TODO: fix UI views so that they can be 'found' directly in the WebTest.TestApp
# NOTE: localhost magpie has to be running for following login call to work
cls.headers, cls.cookies = utils.check_or_try_login_user(cls.app, cls.usr, cls.pwd,
Expand All @@ -98,7 +102,9 @@ def setUpClass(cls):
cls.cookies = None
cls.usr = get_constant('MAGPIE_ANONYMOUS_USER')
cls.grp = get_constant('MAGPIE_ANONYMOUS_GROUP')
cls.version = utils.TestSetup.get_Version(cls)
# FIXME: use get_version()
cls.version = __meta__.__version__
#cls.version = utils.TestSetup.get_Version(cls)


@runner.MAGPIE_TEST_API
Expand Down

0 comments on commit a138adf

Please sign in to comment.