-
-
Notifications
You must be signed in to change notification settings - Fork 321
Closed
Labels
Milestone
Description
Migrated issue, originally created by Michael Bayer (@zzzeek)
diff --git a/tests/test_autogen_fks.py b/tests/test_autogen_fks.py
index 90ca908..9e2b8e5 100644
--- a/tests/test_autogen_fks.py
+++ b/tests/test_autogen_fks.py
@@ -623,6 +623,22 @@ class AutogenerateFKOptionsTest(AutogenFixtureTest, TestBase):
)
eq_(diffs, [])
+ def test_nochange_ondelete_restrict(self):
+ """test the RESTRICT option which MySQL doesn't report on"""
+
+ diffs = self._fk_opts_fixture(
+ {"ondelete": "restrict"}, {"ondelete": "restrict"}
+ )
+ eq_(diffs, [])
+
+ def test_nochange_onupdate_restrict(self):
+ """test the RESTRICT option which MySQL doesn't report on"""
+
+ diffs = self._fk_opts_fixture(
+ {"onupdate": "restrict"}, {"onupdate": "restrict"}
+ )
+ eq_(diffs, [])
+
def test_ondelete_onupdate_combo(self):
diffs = self._fk_opts_fixture(
{"onupdate": "cascade", "ondelete": "set null"},
Reactions are currently unavailable