Fix some tests.
This commit is contained in:
parent
2da0d4ad75
commit
0b160eba33
2 changed files with 8 additions and 8 deletions
|
@ -134,9 +134,9 @@ class BuildNodeConfig(object):
|
||||||
|
|
||||||
|
|
||||||
class TestConfig(FlaskConfig, FakeStorage, EphemeralDB, FakeUserfiles,
|
class TestConfig(FlaskConfig, FakeStorage, EphemeralDB, FakeUserfiles,
|
||||||
FakeAnalytics):
|
FakeAnalytics, StripeTestConfig):
|
||||||
LOGGING_CONFIG = {
|
LOGGING_CONFIG = {
|
||||||
'level': logging.DEBUG,
|
'level': logging.WARN,
|
||||||
'format': LOG_FORMAT
|
'format': LOG_FORMAT
|
||||||
}
|
}
|
||||||
POPULATE_DB_TEST_DATA = True
|
POPULATE_DB_TEST_DATA = True
|
||||||
|
|
|
@ -30,9 +30,9 @@ NEW_ORG_REPO_DETAILS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
NEW_USER_DETAILS = {
|
NEW_USER_DETAILS = {
|
||||||
'username': 'bob',
|
'username': 'bobby',
|
||||||
'password': 'password',
|
'password': 'password',
|
||||||
'email': 'jake@devtable.com',
|
'email': 'bobby@tables.com',
|
||||||
}
|
}
|
||||||
|
|
||||||
SEND_RECOVERY_DETAILS = {
|
SEND_RECOVERY_DETAILS = {
|
||||||
|
@ -412,11 +412,11 @@ def build_specs():
|
||||||
|
|
||||||
TestSpec(url_for('get_org_subscription', orgname=ORG)),
|
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=PUBLIC_REPO), admin_code=403),
|
||||||
TestSpec(url_for('repo_logs_api', repository=ORG_REPO), 401, 403, 403, 200),
|
TestSpec(url_for('repo_logs_api', repository=ORG_REPO)),
|
||||||
TestSpec(url_for('repo_logs_api', repository=PRIVATE_REPO), 401, 403, 403, 200),
|
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)),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue