From a28e425117bfa2651225adc70e9e57f6c24d3dc1 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Fri, 16 Apr 2021 16:17:35 +0000 Subject: [PATCH] Backref cascade warning test checks links This is a deprecation test which already ensures that a warning si emitted whenever a backref-cascade takes place. Expand the text which it checks to include the two links which should be appended to the message in this case. --- test/orm/test_cascade.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/orm/test_cascade.py b/test/orm/test_cascade.py index 879ae2993a..7a1ac35576 100644 --- a/test/orm/test_cascade.py +++ b/test/orm/test_cascade.py @@ -1394,6 +1394,10 @@ class NoSaveCascadeFlushTest(_fixtures.FixtureTest): with testing.expect_deprecated( '"Address" object is being merged into a Session along ' 'the backref cascade path for relationship "User.addresses"' + # link added to this specific warning + r".*Background on this error at: http://sqlalche.me/e/14/s9r1" + # link added to all RemovedIn20Warnings + r".*Background on SQLAlchemy 2.0 at: http://sqlalche.me/e/b8d9" ): a1.user = u1 sess.add(a1) -- 2.47.2