Skip to content

Commit 285529f

Browse files
author
Matt Sokoloff
committed
update test_entity_meta
1 parent d3eb8ae commit 285529f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/test_entity_meta.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ class TestEntityA(DbObject):
1414
class TestEntityB(DbObject):
1515
another_entity = Relationship.ToOne("AnotherEntity", cache=True)
1616

17-
assert str(exc_info.value) == \
18-
"Cannot cache a relationship to an Entity with its own cached relationship(s)." \
19-
" `test_entity_a` caches `test_entity_b` which caches `['another_entity']`"
17+
assert "`test_entity_a` caches `test_entity_b` which caches `['another_entity']`" in str(
18+
exc_info.value)
2019

2120

2221
def test_illegal_cache_cond2():
@@ -29,6 +28,5 @@ class TestEntityD(DbObject):
2928
class TestEntityC(DbObject):
3029
test_entity_d = Relationship.ToOne("TestEntityD", cache=True)
3130

32-
assert str(exc_info.value) == \
33-
"Cannot cache a relationship to an Entity with its own cached relationship(s)." \
34-
" `test_entity_c` caches `test_entity_d` which caches `['another_entity']`"
31+
assert "`test_entity_c` caches `test_entity_d` which caches `['another_entity']`" in str(
32+
exc_info.value)

0 commit comments

Comments
 (0)