File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ class TestEntityA(DbObject):
14
14
class TestEntityB (DbObject ):
15
15
another_entity = Relationship .ToOne ("AnotherEntity" , cache = True )
16
16
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 )
20
19
21
20
22
21
def test_illegal_cache_cond2 ():
@@ -29,6 +28,5 @@ class TestEntityD(DbObject):
29
28
class TestEntityC (DbObject ):
30
29
test_entity_d = Relationship .ToOne ("TestEntityD" , cache = True )
31
30
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 )
You can’t perform that action at this time.
0 commit comments