Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion cms/envs/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@
logging.basicConfig(filename=TEST_ROOT / "log" / "cms_acceptance.log", level=logging.ERROR)

import os
from random import choice, randint


def seed():
return os.getppid()

# Suppress error message "Cannot determine primary key of logged in user"
# from track.middleware that gets triggered when using an auto_auth workflow
# This is an ERROR level warning so we need to set the threshold at CRITICAL
logging.getLogger('track.middleware').setLevel(logging.CRITICAL)

# Suppress warning message "Cannot find corresponding link for name: <foo>"
# from edxmako.shortcuts. We have no appropriate pages in the platform to
# use, so these are not set up for TOS and PRIVACY
logging.getLogger('edxmako.shortcuts').setLevel(logging.ERROR)

DOC_STORE_CONFIG = {
'host': 'localhost',
'db': 'acceptance_xmodule',
Expand Down
5 changes: 5 additions & 0 deletions lms/envs/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
def seed():
return os.getppid()

# Suppress error message "Cannot determine primary key of logged in user"
# from track.middleware that gets triggered when using an auto_auth workflow
# This is an ERROR level warning so we need to set the threshold at CRITICAL
logging.getLogger('track.middleware').setLevel(logging.CRITICAL)

# Use the mongo store for acceptance tests
DOC_STORE_CONFIG = {
'host': 'localhost',
Expand Down