From e361a1e8731ce08f7a632b3914e7a0454191e01d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 24 Jun 2010 17:05:12 -0500 Subject: Get unit tests up and running again We had some dependency issues between migrations that needed to be explicitly defined in order to get things fully moving, and do to some braindeadness in Django tests not including the project url config, we need to do some clever business when using the url tag in the base template so tests don't doe with a NoReverseMatch exception. Signed-off-by: Dan McGee --- main/migrations/0016_always_fill_pkgbase.py | 2 -- packages/migrations/0002_populate_package_relation.py | 4 +++- templates/base.html | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main/migrations/0016_always_fill_pkgbase.py b/main/migrations/0016_always_fill_pkgbase.py index 154122fe..8f556593 100644 --- a/main/migrations/0016_always_fill_pkgbase.py +++ b/main/migrations/0016_always_fill_pkgbase.py @@ -6,8 +6,6 @@ from django.db import models class Migration(DataMigration): - no_dry_run = True - def forwards(self, orm): orm.Package.objects.filter(pkgbase=None).update(pkgbase=models.F('pkgname')) diff --git a/packages/migrations/0002_populate_package_relation.py b/packages/migrations/0002_populate_package_relation.py index 7f903503..738e068f 100644 --- a/packages/migrations/0002_populate_package_relation.py +++ b/packages/migrations/0002_populate_package_relation.py @@ -6,7 +6,9 @@ from django.db import models class Migration(DataMigration): - no_dry_run = True + depends_on = ( + ("main", "0003_migrate_maintainer"), + ) def forwards(self, orm): "Write your forwards methods here." diff --git a/templates/base.html b/templates/base.html index a17ac54d..c575dd5e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -8,7 +8,7 @@ - + {% block head %}{% endblock %} @@ -23,7 +23,7 @@
  • Wiki
  • Bugs
  • AUR
  • -
  • Download
  • +
  • Download
  • @@ -36,7 +36,7 @@
  • DevWiki
  • Projects
  • -
  • News
  • +
  • News
  • Signoffs
  • Todos