From 0c5e4500c10f193d5007fbc3a45973170c8556da Mon Sep 17 00:00:00 2001 From: burnettk Date: Thu, 22 Dec 2022 21:15:10 -0500 Subject: [PATCH] lint and regen schema --- .../versions/{67197b02b0c1_.py => b7face8078df_.py} | 8 ++++---- .../src/spiffworkflow_backend/config/qa1.py | 4 +++- .../scripts/test_refresh_permissions.py | 3 +-- 3 files changed, 8 insertions(+), 7 deletions(-) rename spiffworkflow-backend/migrations/versions/{67197b02b0c1_.py => b7face8078df_.py} (99%) diff --git a/spiffworkflow-backend/migrations/versions/67197b02b0c1_.py b/spiffworkflow-backend/migrations/versions/b7face8078df_.py similarity index 99% rename from spiffworkflow-backend/migrations/versions/67197b02b0c1_.py rename to spiffworkflow-backend/migrations/versions/b7face8078df_.py index 2eb3d107..86ff3bcb 100644 --- a/spiffworkflow-backend/migrations/versions/67197b02b0c1_.py +++ b/spiffworkflow-backend/migrations/versions/b7face8078df_.py @@ -1,8 +1,8 @@ """empty message -Revision ID: 67197b02b0c1 +Revision ID: b7face8078df Revises: -Create Date: 2022-12-20 15:05:31.545567 +Create Date: 2022-12-22 21:12:03.739025 """ from alembic import op @@ -10,7 +10,7 @@ import sqlalchemy as sa # revision identifiers, used by Alembic. -revision = '67197b02b0c1' +revision = 'b7face8078df' down_revision = None branch_labels = None depends_on = None @@ -72,7 +72,7 @@ def upgrade(): op.create_table('user', sa.Column('id', sa.Integer(), nullable=False), sa.Column('username', sa.String(length=255), nullable=False), - sa.Column('service', sa.String(length=50), nullable=False), + sa.Column('service', sa.String(length=255), nullable=False), sa.Column('service_id', sa.String(length=255), nullable=False), sa.Column('display_name', sa.String(length=255), nullable=True), sa.Column('email', sa.String(length=255), nullable=True), diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/config/qa1.py b/spiffworkflow-backend/src/spiffworkflow_backend/config/qa1.py index d27ac698..2f8ad5fc 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/config/qa1.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/config/qa1.py @@ -6,4 +6,6 @@ GIT_USERNAME = environ.get("GIT_USERNAME", default="sartography-automated-commit GIT_USER_EMAIL = environ.get( "GIT_USER_EMAIL", default="sartography-automated-committer@users.noreply.github.com" ) -SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME = environ.get("SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME", default="qa1.yml") +SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME = environ.get( + "SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME", default="qa1.yml" +) diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/scripts/test_refresh_permissions.py b/spiffworkflow-backend/tests/spiffworkflow_backend/scripts/test_refresh_permissions.py index a686ae6f..67cf55c8 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/scripts/test_refresh_permissions.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/scripts/test_refresh_permissions.py @@ -1,9 +1,8 @@ """Test_get_localtime.""" -from flask_bpmn.api.api_error import ApiError import pytest - from flask.app import Flask from flask.testing import FlaskClient +from flask_bpmn.api.api_error import ApiError from tests.spiffworkflow_backend.helpers.base_test import BaseTest from tests.spiffworkflow_backend.helpers.test_data import load_test_spec