From: Bryan Date: Thu, 16 Jan 2014 04:15:57 +0000 (-0500) Subject: slug must exist now, so this test is moot. it was probably never intended to be a... X-Git-Tag: release-20150131~239 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5808ef1ef43e676ef164c4a5aaa8dc3f0df87192;p=oweals%2Fkarmaworld.git slug must exist now, so this test is moot. it was probably never intended to be a feature worth testing that slug could be blank. --- diff --git a/karmaworld/apps/notes/tests.py b/karmaworld/apps/notes/tests.py index 1dc1a1e..c0daea3 100644 --- a/karmaworld/apps/notes/tests.py +++ b/karmaworld/apps/notes/tests.py @@ -76,16 +76,6 @@ class TestNoes(TestCase): self.note.save() self.assertEqual(self.note.slug, expected) - def test_save_no_slug(self): - """ Test that Note.save() doesn't make a slug - if Note.name hasn't been set - """ - self.note.name = None - self.note.slug = None - self.note.save() # re-save the note - # check that slug has note been generated - self.assertIsNone(self.note.slug) - expected_url_prefix = u'/marshall-college/archaeology-101/' expected_slug = u'lecture-notes-concerning-the-use-of-therefore' expected = expected_url_prefix + expected_slug