Summary: Fix two failing IPR tests

- Legacy-Id: 8927
This commit is contained in:
Ole Laursen 2015-01-27 16:28:02 +00:00
parent 7e736e06ff
commit 336cc1bd14
2 changed files with 9 additions and 9 deletions

View file

@ -435,7 +435,7 @@ I would like to revoke this declaration.
r = self.client.get(url)
self.assertEqual(r.status_code,200)
q = PyQuery(r.content)
x = len(q('table#pending-iprs tr')) - 1 # minus header
x = len(q('table.ipr-table tbody tr'))
self.assertEqual(num,x)
def test_admin_removed(self):
@ -452,7 +452,7 @@ I would like to revoke this declaration.
r = self.client.get(url)
self.assertEqual(r.status_code,200)
q = PyQuery(r.content)
x = len(q('table#removed-iprs tr')) - 1 # minus header
x = len(q('table.ipr-table tbody tr'))
self.assertEqual(num,x)
def test_admin_parked(self):

View file

@ -1,10 +1,10 @@
{% load ietf_filters %}
<table class="table table-condensed table-striped">
<table class="table table-condensed table-striped ipr-table">
<thead>
<tr>
<th class="date-column">Date</th>
<th class="id-column">ID</th>
<th class="title-column">Title</th>
<th>Date</th>
<th>ID</th>
<th>Title</th>
{% if administrative_list == 'pending' %}
<th>Query</th>
<th>Response Due</th>
@ -14,9 +14,9 @@
<tbody>
{% for ipr in iprs %}
<tr>
<td class="date-column text-nowrap">{{ ipr.time|date:"Y-m-d" }}</td>
<td class="id-column nowrap">{{ ipr.id }}</td>
<td class="title-column">
<td class="text-nowrap">{{ ipr.time|date:"Y-m-d" }}</td>
<td>{{ ipr.id }}</td>
<td>
{% if ipr.state_id == 'posted' or administrative_list %}
<div><a href="{% url "ietf.ipr.views.show" ipr.id %}">{{ ipr.title }}</a></div>
{% else %}