From 0b160eba33e4089c7862bc591e8bd4d2e7152a57 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Mon, 2 Dec 2013 16:16:45 -0500 Subject: [PATCH] Fix some tests. --- config.py | 4 ++-- test/specs.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.py b/config.py index 8616f47d4..4e20fdc8c 100644 --- a/config.py +++ b/config.py @@ -134,9 +134,9 @@ class BuildNodeConfig(object): class TestConfig(FlaskConfig, FakeStorage, EphemeralDB, FakeUserfiles, - FakeAnalytics): + FakeAnalytics, StripeTestConfig): LOGGING_CONFIG = { - 'level': logging.DEBUG, + 'level': logging.WARN, 'format': LOG_FORMAT } POPULATE_DB_TEST_DATA = True diff --git a/test/specs.py b/test/specs.py index f69666128..edaf42946 100644 --- a/test/specs.py +++ b/test/specs.py @@ -30,9 +30,9 @@ NEW_ORG_REPO_DETAILS = { } NEW_USER_DETAILS = { - 'username': 'bob', + 'username': 'bobby', 'password': 'password', - 'email': 'jake@devtable.com', + 'email': 'bobby@tables.com', } SEND_RECOVERY_DETAILS = { @@ -412,11 +412,11 @@ def build_specs(): TestSpec(url_for('get_org_subscription', orgname=ORG)), - TestSpec(url_for('repo_logs_api', repository=PUBLIC_REPO), 401, 403, 403, 403), - TestSpec(url_for('repo_logs_api', repository=ORG_REPO), 401, 403, 403, 200), - TestSpec(url_for('repo_logs_api', repository=PRIVATE_REPO), 401, 403, 403, 200), + TestSpec(url_for('repo_logs_api', repository=PUBLIC_REPO), admin_code=403), + TestSpec(url_for('repo_logs_api', repository=ORG_REPO)), + TestSpec(url_for('repo_logs_api', repository=PRIVATE_REPO)), - TestSpec(url_for('org_logs_api', orgname=ORG), 401, 403, 403, 200), + TestSpec(url_for('org_logs_api', orgname=ORG)), ]