From e120cef000135ed6d36325b2e73f6e9d8310b607 Mon Sep 17 00:00:00 2001 From: Charles Engelke Date: Wed, 14 Nov 2018 11:14:04 -0800 Subject: [PATCH] Incremental fixes for tests --- 2-structured-data/bookshelf/model_mongodb.py | 3 --- noxfile.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/2-structured-data/bookshelf/model_mongodb.py b/2-structured-data/bookshelf/model_mongodb.py index 3a856e33..1ad36ce9 100644 --- a/2-structured-data/bookshelf/model_mongodb.py +++ b/2-structured-data/bookshelf/model_mongodb.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os - from bson.objectid import ObjectId from flask_pymongo import PyMongo @@ -47,7 +45,6 @@ def from_mongo(data): def init_app(app): global mongo - app.config["MONGO_URI"] = os.environ["MONGO_URI"] mongo = PyMongo(app) mongo.init_app(app) diff --git a/noxfile.py b/noxfile.py index 37877381..0657ea43 100644 --- a/noxfile.py +++ b/noxfile.py @@ -44,15 +44,12 @@ def lint(session): def run_test(session, dir): - print('Running a test') - session.install('-r', 'requirements.txt') session.chdir(dir) if os.path.exists('requirements.txt'): session.install('-r', 'requirements.txt') session.env['PYTHONPATH'] = os.getcwd() - print(session.env) session.run( 'pytest', *(PYTEST_COMMON_ARGS + session.posargs),