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 <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-06-24 17:05:12 -05:00
parent 081ed6c866
commit e361a1e873
3 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,6 @@
class Migration(DataMigration):
no_dry_run = True
def forwards(self, orm):
orm.Package.objects.filter(pkgbase=None).update(pkgbase=models.F('pkgname'))

View File

@ -6,7 +6,9 @@
class Migration(DataMigration):
no_dry_run = True
depends_on = (
("main", "0003_migrate_maintainer"),
)
def forwards(self, orm):
"Write your forwards methods here."

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" type="text/css" href="/media/archweb-print.css" media="print" />
<link rel="icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/media/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch-packages %}" title="Arch Linux Packages" />
<link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch-packages as osp %}{{ osp }}" title="Arch Linux Packages" />
{% block head %}{% endblock %}
</head>
<body class="{% if user.is_authenticated %}devmode {% endif %}{% block bodyclass %}{% endblock %}">
@ -23,7 +23,7 @@
<li id="anb-wiki"><a href="http://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
<li id="anb-bugs"><a href="http://bugs.archlinux.org/" title="Report and track bugs">Bugs</a></li>
<li id="anb-aur"><a href="http://aur.archlinux.org/" title="Arch Linux User Repository">AUR</a></li>
<li id="anb-download"><a href="{% url page-download %}" title="Get Arch Linux">Download</a></li>
<li id="anb-download"><a href="{% url page-download as pdl %}{{ pdl }}" title="Get Arch Linux">Download</a></li>
</ul>
</div>
</div><!-- #archnavbar -->
@ -36,7 +36,7 @@
<li><a href="http://wiki.archlinux.org/index.php/DeveloperWiki"
title="Developer HOWTOs and documentation">DevWiki</a></li>
<li><a href="http://projects.archlinux.org/" title="Git Projects">Projects</a></li>
<li><a href="{% url news-list %}" title="Manage news articles">News</a></li>
<li><a href="{% url news-list as newsl %}{{ newsl }}" title="Manage news articles">News</a></li>
<li><a href="/packages/signoffs/" title="Package signoffs">Signoffs</a></li>
<li><a href="/todo/" title="Developer to-do lists">Todos</a></li>
<li><a href="http://www.archlinux.org/mailman/private/arch-dev/"