Skip to content

Commit 512482c

Browse files
committed
✅ Tweak test name
1 parent b81b1cc commit 512482c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Hero(SQLModel, table=True):
9494
session.refresh(hero_2)
9595

9696

97-
def test_sa_relationship(clear_sqlmodel):
97+
def test_sa_relationship_property(clear_sqlmodel):
9898
"""Test https://github.com/tiangolo/sqlmodel/issues/315#issuecomment-1272122306"""
9999

100100
class Team(SQLModel, table=True):
@@ -124,4 +124,5 @@ class Hero(SQLModel, table=True):
124124
session.commit()
125125
session.refresh(hero_rusty_man)
126126
# The next statement should not raise an AttributeError
127+
assert hero_rusty_man.team
127128
assert hero_rusty_man.team.name == "Preventers"

0 commit comments

Comments
 (0)