Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup2

  • Loading branch information...
commit 4b84a9db2b3a8f1a51339995385f0145f84f281b 1 parent de89569
@digi604 authored
Showing with 8 additions and 12 deletions.
  1. +8 −12 cms/tests/management.py
View
20 cms/tests/management.py
@@ -21,12 +21,12 @@ def test_list_apphooks(self):
apps = ["cms", "menus", "sekizai", "cms.test_utils.project.sampleapp"]
with SettingsOverride(INSTALLED_APPS=apps):
create_page('Hello Title', "nav_playground.html", "en", apphook=APPHOOK)
- self.assertEqual(Title.objects.filter(application_urls=APPHOOK).count(), 1)
+ self.assertEqual(Title.objects.filter(application_urls=APPHOOK).count(), 1)
command = cms.Command()
command.stdout = out
command.handle("list", "apphooks", interactive=False)
self.assertEqual(out.getvalue(), "SampleApp\n")
-
+
def test_uninstall_apphooks_without_apphook(self):
out = StringIO()
command = cms.Command()
@@ -56,17 +56,13 @@ def test_list_plugins(self):
add_plugin(placeholder, "LinkPlugin", "en",
name="A Link", url="https://www.django-cms.org")
self.assertEqual(
- CMSPlugin.objects.filter(plugin_type=PLUGIN).count(),
- 2)
+ CMSPlugin.objects.filter(plugin_type=PLUGIN).count(),
+ 2)
self.assertEqual(
- CMSPlugin.objects.filter(plugin_type="LinkPlugin").count(),
- 1)
- for plugin in plugin_report():
- print plugin
- # command.stdout = out
- # command.handle("list", "plugins", interactive=False)
- # self.assertEqual(out.getvalue(), "LinkPlugin\nTextPlugin\n")
-
+ CMSPlugin.objects.filter(plugin_type="LinkPlugin").count(),
+ 1)
+
+
def test_uninstall_plugins_without_plugin(self):
out = StringIO()
command = cms.Command()
Please sign in to comment.
Something went wrong with that request. Please try again.