Skip to content

Commit

Permalink
Add test for swapper.split
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Apr 24, 2017
1 parent b0c68a5 commit 8f6634f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_swapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def test_not_installed(self):
with self.assertRaises(ImproperlyConfigured):
swapper.load_model("invalid_app", "Invalid", required=True)

def test_non_contrib_app_split(self):
self.assertEqual(swapper.split('alt_app.Type'), ('alt_app', 'Type'))

# Tests that only work if default_app.Type is swapped
@unittest.skipUnless(settings.SWAP, "requires swapped models")
def test_swap_setting(self):
Expand Down

0 comments on commit 8f6634f

Please sign in to comment.