Library updates #432

This commit is contained in:
Daniel Grams 2023-04-16 14:10:24 +02:00
parent f940d26a71
commit 820407a69b
4 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,7 @@ jobs:
- name: Run tests - name: Run tests
run: pytest --cov=project --splits 4 --group ${{ matrix.group }} run: pytest --cov=project --splits 4 --group ${{ matrix.group }}
env: env:
TEST_DATABASE_URL: postgresql://postgres:postgres@localhost/eventcally_tests TEST_DATABASE_URL: postgresql://postgres:postgres@postgres/eventcally_tests
TEST_REDIS_URL: redis://localhost:6379 TEST_REDIS_URL: redis://localhost:6379
- name: Upload coverage - name: Upload coverage

View File

@ -9,7 +9,7 @@ import sqlalchemy as sa
import sqlalchemy_utils import sqlalchemy_utils
from alembic import op from alembic import op
from sqlalchemy import orm from sqlalchemy import orm
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import declarative_base
from project import dbtypes from project import dbtypes

View File

@ -10,7 +10,7 @@ import sqlalchemy_utils
from alembic import op from alembic import op
from sqlalchemy import orm from sqlalchemy import orm
from sqlalchemy.dialects import postgresql from sqlalchemy.dialects import postgresql
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import declarative_base
from project import dbtypes from project import dbtypes

View File

@ -4,6 +4,7 @@ from sqlalchemy.types import TypeDecorator
class IntegerEnum(TypeDecorator): class IntegerEnum(TypeDecorator):
impl = Integer impl = Integer
cache_ok = True
def __init__(self, enumtype, *args, **kwargs): def __init__(self, enumtype, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)