chore: remove bok choy settings

This commit is contained in:
salman2013
2023-09-27 10:58:37 +05:00
parent 8c9232ace9
commit 42ca0ddec4
33 changed files with 28 additions and 2500 deletions

View File

@@ -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')

View File

@@ -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)

View File

@@ -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'