datatracker/ietf
Ole Laursen d5b14f3fb3 Rewrite meeting tests: add fake data generator, rewrite the
SimpleUrlTest tests to work with fake data and expand them a bit (they
are still pretty basic), rewrite the agenda editing tests to work with
the small generated fake data, delete those tests that are trivial or
only testing fixture facts as opposed to actually exercising the code,
combine some of them, expand most to actually check the returned JSON
and generally clean up the copy-paste mess of incorrect comments and
incorrect POST data.

At this point, no tests are using the real data base test machinery,
so one can run the full test suite with just

  python manage.py test --settings=settings_sqlitetest

This takes about 72 seconds one a 2.4 GHz Intel Core 2. The
test-crawler and other real data tests take somewhat longer, though.
 - Legacy-Id: 7069
2013-12-24 16:09:33 +00:00
..
bin Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE 2013-12-18 15:51:11 +00:00
community Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5 2013-12-18 10:13:40 +00:00
contrib Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
cookies Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django 2013-12-11 16:36:09 +00:00
database-notes Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
dbtemplate Turn on CSRF protection - all forms must from now on have a {% csrf_token %} 2013-12-17 12:50:24 +00:00
doc With the new test discovery mechanism in Django 1.6 (inherited from 2013-12-20 13:08:38 +00:00
group Rename group AJAX URL parameter to acronym instead of groupname since 2013-12-24 12:49:25 +00:00
help Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django 2013-12-11 16:36:09 +00:00
idindex Use prefetch_related to reduce the number of queries on the search page and in idindex generation, adjust a couple of members on Document slightly to not filter on relations (filtering doesn't work with prefetch_related) 2013-12-18 16:58:34 +00:00
iesg Use collections.OrderedDict instead of the SortedDict bundled with Django 2013-12-20 11:00:07 +00:00
ietfauth Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5 2013-12-18 10:13:40 +00:00
ipr Speed up IPR list by adding a prefetch_related() call 2013-12-19 11:53:41 +00:00
liaisons Add .prefetch_related on liaison list page to reduce the number of DB 2013-12-18 16:30:18 +00:00
mailinglists Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django 2013-12-11 16:36:09 +00:00
meeting Rewrite meeting tests: add fake data generator, rewrite the 2013-12-24 16:09:33 +00:00
message assertEquals -> assertEqual in tests, the former is deprecated 2013-12-17 12:52:24 +00:00
name Regenerate name fixtures, apparently the indentation of the JSON output has changed 2013-12-18 15:53:15 +00:00
nomcom Use collections.OrderedDict instead of the SortedDict bundled with Django 2013-12-20 11:00:07 +00:00
patches Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE 2013-12-18 15:51:11 +00:00
person Remove Person.objects.by_username/by_email for now - they aren't actually in use, the email one looks suspicious in that it takes the email from the User object, and the username one does not seem generally useful; also remove the unit tests of these two which was relying on an incomplete fixture 2013-12-20 12:13:02 +00:00
redirects Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django 2013-12-11 16:36:09 +00:00
release Changed tests to use our own subclassed TestCase, and changed almost all fixtures to be perma_fixtures. 2013-09-30 20:36:20 +00:00
secr Port secr/drafts/report_id_activity.py away from setup_environ too 2013-12-18 16:02:04 +00:00
submit Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5 2013-12-18 10:13:40 +00:00
sync assertEquals -> assertEqual in tests, the former is deprecated 2013-12-17 12:52:24 +00:00
templates Rewrite meeting PUTs to POSTs. For no apparent reason, parts of the 2013-12-24 15:13:33 +00:00
utils Simplify make_test_data a bit by using the create_person helper for the chair and WG delegate, regularize the naming of those 2013-12-18 16:27:02 +00:00
wgcharter Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE 2013-12-18 15:51:11 +00:00
wginfo Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5 2013-12-18 10:13:40 +00:00
.gitignore Fixes #563 2010-12-02 20:34:50 +00:00
__init__.py Set version info and settings back to development mode 2013-11-06 19:33:49 +00:00
context_processors.py Moves the prefix for the URI to use for rfcdiff into settings.py. 2012-07-28 20:19:36 +00:00
feed_urls.py Port feed setup to new feed API where each feed is a class-based view 2013-12-16 16:29:22 +00:00
legacy_router.py Remove unused code 2012-01-04 16:58:41 +00:00
manage.py Replace manage.py script with new script generated by Django 1.6 2013-12-11 15:50:14 +00:00
middleware.py Added logging for mail sending problems. 2013-03-06 19:36:06 +00:00
settings.py Set ALLOWED_HOSTS (may need some tweaking), add LOGGING setting to 2013-12-18 14:00:44 +00:00
settings_sqlitetest.py Fix import path in settings_sqlitetest.py 2013-12-12 12:24:25 +00:00
urls.py Upgrade Dajaxice to latest version from github (0.5.5) to make meeting agenda code work with CSRF, with url conf import fix and using json instead of deprecated simplejson from Django - add a simple view to serve dajaxice.core.js which we need because we are not using the staticfiles collection step (apparently Dajaxice hooks into that through a somewhat complicated hack) 2013-12-20 11:59:09 +00:00
wsgi.py Updated the comment with the working Apache setting for a dev server. 2013-09-18 20:31:57 +00:00