Fix old-style flask imports to silence deprecation warnings.
This commit is contained in:
parent
a0817bfd59
commit
c7241911a5
4 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ import bcrypt
|
|||
import logging
|
||||
import json
|
||||
import uuid
|
||||
from flask.ext.login import UserMixin
|
||||
from flask_login import UserMixin
|
||||
|
||||
from peewee import JOIN_LEFT_OUTER, IntegrityError, fn
|
||||
from uuid import uuid4
|
||||
|
|
|
@ -3,7 +3,7 @@ import os
|
|||
import pytest
|
||||
import shutil
|
||||
from flask import Flask, jsonify
|
||||
from flask.ext.login import LoginManager
|
||||
from flask_login import LoginManager
|
||||
from peewee import SqliteDatabase
|
||||
|
||||
from app import app as application
|
||||
|
|
|
@ -3,7 +3,7 @@ import requests
|
|||
import unittest
|
||||
|
||||
from flask import Flask
|
||||
from flask.ext.testing import LiveServerTestCase
|
||||
from flask_testing import LiveServerTestCase
|
||||
|
||||
from initdb import setup_database_for_testing, finished_database_for_testing
|
||||
from storage import Storage
|
||||
|
|
|
@ -3,7 +3,7 @@ import os
|
|||
import pytest
|
||||
import shutil
|
||||
from flask import Flask, jsonify
|
||||
from flask.ext.login import LoginManager
|
||||
from flask_login import LoginManager
|
||||
from peewee import SqliteDatabase
|
||||
|
||||
from app import app as application
|
||||
|
|
Reference in a new issue