diff options
| author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2021-08-12 01:50:54 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-08-19 10:18:51 +0200 |
| commit | 7800596924375978df3ca995df4c3466f1cd168e (patch) | |
| tree | c8832fdc5517ef7a544ecc3fa35981f83bc643be /tests | |
| parent | 4e8121e8e42a24acc3565851c9ef50ca8322b15c (diff) | |
Fixed #33014 -- Made ProjectState raise exception when real_apps argument is not a set.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_state.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py index 01ffc48802..5be29ca2f1 100644 --- a/tests/migrations/test_state.py +++ b/tests/migrations/test_state.py @@ -924,6 +924,10 @@ class StateTests(SimpleTestCase): 1, ) + def test_real_apps_non_set(self): + with self.assertRaises(AssertionError): + ProjectState(real_apps=['contenttypes']) + def test_ignore_order_wrt(self): """ Makes sure ProjectState doesn't include OrderWrt fields when |
