mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
Library updates #432
This commit is contained in:
parent
f940d26a71
commit
820407a69b
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -65,7 +65,7 @@ jobs:
|
||||
- name: Run tests
|
||||
run: pytest --cov=project --splits 4 --group ${{ matrix.group }}
|
||||
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
|
||||
|
||||
- name: Upload coverage
|
||||
|
||||
@ -9,7 +9,7 @@ import sqlalchemy as sa
|
||||
import sqlalchemy_utils
|
||||
from alembic import op
|
||||
from sqlalchemy import orm
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.orm import declarative_base
|
||||
|
||||
from project import dbtypes
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ import sqlalchemy_utils
|
||||
from alembic import op
|
||||
from sqlalchemy import orm
|
||||
from sqlalchemy.dialects import postgresql
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.orm import declarative_base
|
||||
|
||||
from project import dbtypes
|
||||
|
||||
|
||||
@ -4,6 +4,7 @@ from sqlalchemy.types import TypeDecorator
|
||||
|
||||
class IntegerEnum(TypeDecorator):
|
||||
impl = Integer
|
||||
cache_ok = True
|
||||
|
||||
def __init__(self, enumtype, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user