Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbenav committed Dec 23, 2024
1 parent 7317640 commit e631a49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ mypy = "^1.9.0"
ruff = "^0.3.4"
coverage = "^7.4.4"
testcontainers = "^4.7.1"
asyncpg = "^0.30.0"
psycopg2-binary = "^2.9.10"
psycopg = "^3.2.1"
aiomysql = "^0.2.0"
cryptography = "^43.0.1"
asyncpg = "^0.30.0"

[build-system]
requires = ["poetry-core"]
Expand Down
4 changes: 2 additions & 2 deletions tests/sqlalchemy/core/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class UUIDModel(Base):
__tablename__ = "uuid_test"
id = Column(PostgresUUID(as_uuid=True), primary_key=True, default=uuid4)
name = Column(String)
name = Column(String(255))


class CustomUUID(TypeDecorator):
Expand All @@ -43,7 +43,7 @@ def process_result_value(self, value, dialect):
class CustomUUIDModel(Base):
__tablename__ = "custom_uuid_test"
id = Column(CustomUUID(), primary_key=True, default=uuid4)
name = Column(String)
name = Column(String(255))


class UUIDSchema(BaseModel):
Expand Down
4 changes: 2 additions & 2 deletions tests/sqlmodel/core/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class UUIDModel(SQLModel, table=True):
default_factory=uuid4,
sa_column=Column(PostgresUUID(as_uuid=True), primary_key=True),
)
name: str
name: str = Field(sa_column=Column(String(255)))


class CustomUUID(TypeDecorator):
Expand Down Expand Up @@ -47,7 +47,7 @@ class CustomUUIDModel(SQLModel, table=True):
id: UUID = Field(
default_factory=uuid4, sa_column=Column(CustomUUID(), primary_key=True)
)
name: str
name: str = Field(sa_column=Column(String(255)))


class UUIDSchema(SQLModel):
Expand Down

0 comments on commit e631a49

Please sign in to comment.