Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: black is black

+14 -13
+14 -12
kefi/migrations/versions/bdd01590a965_init_user_model.py
··· 5 5 Create Date: 2021-11-05 16:56:27.724680 6 6 7 7 """ 8 - from alembic import op 9 8 import sqlalchemy as sa 10 9 import sqlmodel 11 - 10 + from alembic import op 12 11 13 12 # revision identifiers, used by Alembic. 14 - revision = 'bdd01590a965' 13 + revision = "bdd01590a965" 15 14 down_revision = None 16 15 branch_labels = None 17 16 depends_on = None ··· 19 18 20 19 def upgrade(): 21 20 # ### commands auto generated by Alembic - please adjust! ### 22 - op.create_table('user', 23 - sa.Column('slack_user_id', sa.String(length=100), nullable=True), 24 - sa.Column('id', sa.Integer(), nullable=True), 25 - sa.PrimaryKeyConstraint('id') 21 + op.create_table( 22 + "user", 23 + sa.Column("slack_user_id", sa.String(length=100), nullable=True), 24 + sa.Column("id", sa.Integer(), nullable=True), 25 + sa.PrimaryKeyConstraint("id"), 26 26 ) 27 - op.create_index(op.f('ix_user_id'), 'user', ['id'], unique=False) 28 - op.create_index(op.f('ix_user_slack_user_id'), 'user', ['slack_user_id'], unique=True) 27 + op.create_index(op.f("ix_user_id"), "user", ["id"], unique=False) 28 + op.create_index( 29 + op.f("ix_user_slack_user_id"), "user", ["slack_user_id"], unique=True 30 + ) 29 31 # ### end Alembic commands ### 30 32 31 33 32 34 def downgrade(): 33 35 # ### commands auto generated by Alembic - please adjust! ### 34 - op.drop_index(op.f('ix_user_slack_user_id'), table_name='user') 35 - op.drop_index(op.f('ix_user_id'), table_name='user') 36 - op.drop_table('user') 36 + op.drop_index(op.f("ix_user_slack_user_id"), table_name="user") 37 + op.drop_index(op.f("ix_user_id"), table_name="user") 38 + op.drop_table("user") 37 39 # ### end Alembic commands ###
-1
kefi/tests/test_commands.py
··· 1 1 from faker import Faker 2 2 from fastapi.testclient import TestClient 3 3 4 - 5 4 fake = Faker() 6 5 7 6