chore: remove bok choy settings
This commit is contained in:
@@ -9,5 +9,4 @@ overrides don't exist
|
||||
import os
|
||||
|
||||
MONGO_PORT_NUM = int(os.environ.get('EDXAPP_TEST_MONGO_PORT', '27017'))
|
||||
MONGO_HOST = os.environ.get('EDXAPP_TEST_MONGO_HOST',
|
||||
'edx.devstack.mongo' if 'BOK_CHOY_HOSTNAME' in os.environ else 'localhost')
|
||||
MONGO_HOST = os.environ.get('EDXAPP_TEST_MONGO_HOST', 'localhost')
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests for methods defined in mongo_utils.py
|
||||
"""
|
||||
|
||||
|
||||
import os
|
||||
from unittest import TestCase
|
||||
from uuid import uuid4
|
||||
|
||||
@@ -29,7 +28,7 @@ class MongoUtilsTests(TestCase):
|
||||
"""
|
||||
Test that read_preference parameter gets converted to a valid pymongo read preference.
|
||||
"""
|
||||
host = 'edx.devstack.mongo' if 'BOK_CHOY_HOSTNAME' in os.environ else 'localhost'
|
||||
host = 'localhost'
|
||||
db = 'test_read_preference_%s' % uuid4().hex
|
||||
# Support for read_preference given in constant name form (ie. PRIMARY, SECONDARY_PREFERRED)
|
||||
connection = connect_to_mongodb(db, host, read_preference=enum_name)
|
||||
|
||||
@@ -15,7 +15,6 @@ the course, section, subsection, unit, etc.
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import unittest
|
||||
from tempfile import mkdtemp
|
||||
@@ -937,7 +936,7 @@ class VideoBlockStudentViewDataTestCase(unittest.TestCase):
|
||||
@patch.object(settings, 'CONTENTSTORE', create=True, new={
|
||||
'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore',
|
||||
'DOC_STORE_CONFIG': {
|
||||
'host': 'edx.devstack.mongo' if 'BOK_CHOY_HOSTNAME' in os.environ else 'localhost',
|
||||
'host': 'localhost',
|
||||
'db': 'test_xcontent_%s' % uuid4().hex,
|
||||
},
|
||||
# allow for additional options that can be keyed on a name, e.g. 'trashcan'
|
||||
|
||||
Reference in New Issue
Block a user