Skip to content

Commit

Permalink
Incremental fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
engelke committed Nov 14, 2018
1 parent 82d2a56 commit e120cef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions 2-structured-data/bookshelf/model_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down
3 changes: 0 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e120cef

Please sign in to comment.