update python dependencies
This commit is contained in:
@ -111,7 +111,7 @@ def get_clients(auth_user: User) -> Dict:
|
||||
clients_pagination = (
|
||||
OAuth2Client.query.filter_by(user_id=auth_user.id)
|
||||
.order_by(OAuth2Client.id.desc())
|
||||
.paginate(page, per_page, False)
|
||||
.paginate(page=page, per_page=per_page, error_out=False)
|
||||
)
|
||||
clients = clients_pagination.items
|
||||
return {
|
||||
|
@ -48,13 +48,6 @@ class TestTestingConfig:
|
||||
else ''
|
||||
)
|
||||
|
||||
def test_it_does_not_preserve_context_on_exception(
|
||||
self, app: Flask
|
||||
) -> None:
|
||||
app.config.from_object('fittrackee.config.TestingConfig')
|
||||
|
||||
assert not app.config['PRESERVE_CONTEXT_ON_EXCEPTION']
|
||||
|
||||
|
||||
class TestProductionConfig:
|
||||
def test_debug_is_disabled(self, app: Flask) -> None:
|
||||
@ -75,10 +68,3 @@ class TestProductionConfig:
|
||||
assert app.config['SQLALCHEMY_DATABASE_URI'] == os.environ.get(
|
||||
'DATABASE_TEST_URL'
|
||||
)
|
||||
|
||||
def test_it_does_not_preserve_context_on_exception(
|
||||
self, app: Flask
|
||||
) -> None:
|
||||
app.config.from_object('fittrackee.config.ProductionConfig')
|
||||
|
||||
assert not app.config['PRESERVE_CONTEXT_ON_EXCEPTION']
|
||||
|
@ -200,7 +200,7 @@ def get_users(auth_user: User) -> Dict:
|
||||
User.username.ilike('%' + query + '%') if query else True,
|
||||
)
|
||||
.order_by(asc(user_column) if order == 'asc' else desc(user_column))
|
||||
.paginate(page, per_page, False)
|
||||
.paginate(page=page, per_page=per_page, error_out=False)
|
||||
)
|
||||
users = users_pagination.items
|
||||
return {
|
||||
|
@ -271,7 +271,7 @@ def get_workouts(auth_user: User) -> Union[Dict, HttpResponse]:
|
||||
if order == 'asc'
|
||||
else desc(workout_column),
|
||||
)
|
||||
.paginate(page, per_page, False)
|
||||
.paginate(page=page, per_page=per_page, error_out=False)
|
||||
)
|
||||
workouts = workouts_pagination.items
|
||||
return {
|
||||
|
Reference in New Issue
Block a user