From: Stephen Rosen Date: Fri, 16 Apr 2021 16:17:35 +0000 (+0000) Subject: Backref cascade warning test checks links X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a28e425117bfa2651225adc70e9e57f6c24d3dc1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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. --- 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)