We're updating the issue view to help you get more done. 

test dependent on config file

Description

The tests should be able to pass for anyone. Tests that depend on other users should not fail if there aren't two users

ERROR: integration.test_synapseutils.test_copyFileHandleAndchangeFileMetadata
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/lom/Dropbox/Sage/synapsePythonClient/tests/integration/test_synapseutils.py", line 517, in test_copyFileHandleAndchangeFileMetadata
syn_other.login(other_user['username'], other_user['password'])
KeyError: u'password'

Should be surrounded by try except:

1 2 3 4 5 6 try: other_user['username'] = config.get('test-authentication', 'username') other_user['password'] = config.get('test-authentication', 'password') other_user['principalId'] = config.get('test-authentication', 'principalId') except configparser.Error: print("[test-authentication] section missing from the configuration file")

Environment

Status

Assignee

Larsson Omberg

Reporter

Larsson Omberg

Validator

Xavier Schildwachter

Fix versions

Priority

Critical