Skip to content

Commit aaf24b8

Browse files
committed
REMOVE: author field from News model and related test assertions
1 parent 88db2c4 commit aaf24b8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

app/services/database/models/news.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class News(SQLModel, table=True):
1111
id: Optional[int] = Field(default=None, primary_key=True)
1212
title: str
1313
content: str
14-
author: str
1514
category: str
1615
user_email: str
1716
source_url: str

tests/test_news.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ async def test_insert_libraries(session: AsyncSession, community: Community):
2424
news = News(
2525
title="Python 3.12 Lançado!",
2626
content="A nova versão do Python traz melhorias ...",
27-
author="Python Team",
2827
category="release",
2928
user_email="[email protected]",
3029
source_url="https://python.org/news",
@@ -42,7 +41,6 @@ async def test_insert_libraries(session: AsyncSession, community: Community):
4241
assert found_news is not None
4342
assert found_news.title == "Python 3.12 Lançado!"
4443
assert found_news.content == "A nova versão do Python traz melhorias ..."
45-
assert found_news.author == "Python Team"
4644
assert found_news.category == "release"
4745
assert found_news.user_email == "[email protected]"
4846
assert found_news.source_url == "https://python.org/news"

0 commit comments

Comments
 (0)