
API_BASE = "http://localhost:5555/n/"
TEST_MAX_DURATION_SECS = 240
TEST_GRANULARITY_CHECK_SECS = 0.1

# we don't want to commit passwords to the repo.
# load them from an external json file.
try:
    from accounts import credentials
    passwords = []
    for account in credentials:
        passwords.append((account['user'], account['password']))
except IOError as e:
    print ("Error: test accounts file not found."
           "You need to create accounts.py\n"
           "File format: credentials = [{'user': 'bill@example.com', "
           "'password': 'VerySecret'}]")
    raise


API_BASE = "http://localhost:5555/n/"
TEST_MAX_DURATION_SECS = 240
TEST_GRANULARITY_CHECK_SECS = 0.1

# we don't want to commit passwords to the repo.
# load them from an external json file.
try:
    from accounts import credentials
    passwords = []
    for account in credentials:
        passwords.append((account['user'], account['password']))
except ImportError:
    print ("Error: test accounts file not found. "
           "You need to create accounts.py\n"
           "File format: credentials = [{'user': 'bill@example.com', "
           "'password': 'VerySecret'}]")
    raise

Fix check for accounts.py file in system tests.
Fix check for accounts.py file in system tests.

  
  API_BASE = "http://localhost:5555/n/"
  TEST_MAX_DURATION_SECS = 240
  TEST_GRANULARITY_CHECK_SECS = 0.1
  
  # we don't want to commit passwords to the repo.
  # load them from an external json file.
  try:
      from accounts import credentials
      passwords = []
      for account in credentials:
          passwords.append((account['user'], account['password']))
- except IOError as e:
+ except ImportError:
-     print ("Error: test accounts file not found."
+     print ("Error: test accounts file not found. "
             "You need to create accounts.py\n"
             "File format: credentials = [{'user': 'bill@example.com', "
             "'password': 'VerySecret'}]")
      raise
  
Fix check for accounts.py file in system tests.
## Code Before:

API_BASE = "http://localhost:5555/n/"
TEST_MAX_DURATION_SECS = 240
TEST_GRANULARITY_CHECK_SECS = 0.1

# we don't want to commit passwords to the repo.
# load them from an external json file.
try:
    from accounts import credentials
    passwords = []
    for account in credentials:
        passwords.append((account['user'], account['password']))
except IOError as e:
    print ("Error: test accounts file not found."
           "You need to create accounts.py\n"
           "File format: credentials = [{'user': 'bill@example.com', "
           "'password': 'VerySecret'}]")
    raise

## Instruction:
Fix check for accounts.py file in system tests.
## Code After:

API_BASE = "http://localhost:5555/n/"
TEST_MAX_DURATION_SECS = 240
TEST_GRANULARITY_CHECK_SECS = 0.1

# we don't want to commit passwords to the repo.
# load them from an external json file.
try:
    from accounts import credentials
    passwords = []
    for account in credentials:
        passwords.append((account['user'], account['password']))
except ImportError:
    print ("Error: test accounts file not found. "
           "You need to create accounts.py\n"
           "File format: credentials = [{'user': 'bill@example.com', "
           "'password': 'VerySecret'}]")
    raise
