summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views/tests.py
diff options
context:
space:
mode:
authorKevin Kubasik <kevin@kubasik.net>2009-06-23 07:02:54 +0000
committerKevin Kubasik <kevin@kubasik.net>2009-06-23 07:02:54 +0000
commite223716bd80ced8a2ca25ea4befc327f425c7203 (patch)
treeca94bc45308801ba77d984c51bf5fcebb5d29f1d /tests/regressiontests/admin_views/tests.py
parent2fd60f00163e59bcd87350598af3029f7af5b2a3 (diff)
[gsoc2009-testing] Initial tests for the Admin views based on exisiting models and fixtures. runtest.py --windmill will activate them
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/test-improvements@11087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views/tests.py')
-rw-r--r--tests/regressiontests/admin_views/tests.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index 8e7010be9f..769bc9a759 100644
--- a/tests/regressiontests/admin_views/tests.py
+++ b/tests/regressiontests/admin_views/tests.py
@@ -1419,3 +1419,24 @@ class AdminInlineTests(TestCase):
self.failUnlessEqual(response.status_code, 302)
self.failUnlessEqual(FancyDoodad.objects.count(), 1)
self.failUnlessEqual(FancyDoodad.objects.all()[0].name, "Fancy Doodad 1 Updated")
+
+import os
+from django.test import windmill_tests as djangotest
+#from windmill.authoring import djangotest
+from windmill.conf import global_settings
+
+# class TestProjectWindmillTest(djangotest.WindmillDjangoUnitTest):
+# fixtures = ['admin-views-users.xml', 'admin-views-colors.xml', 'admin-views-fabrics.xml', 'admin-views-unicode.xml',
+# 'multiple-child-classes', 'admin-views-actions.xml', 'string-primary-key.xml', 'admin-views-person.xml']
+# test_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'windmilltests')
+# #test_dir = os.path.dirname(os.path.abspath(__file__))
+# #test_dir = os.path.dirname(os.path.abspath(__file__))
+# browser = 'firefox'
+# test_url = 'http://localhost:8000/test_admin/admin/'
+# global_settings.TEST_URL = test_url
+
+ # def test_tryout(self):
+ # pass
+
+
+