Skip to content

Commit 336cc1b

Browse files
committed
Summary: Fix two failing IPR tests
- Legacy-Id: 8927
1 parent 7e736e0 commit 336cc1b

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

ietf/ipr/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def test_admin_pending(self):
435435
r = self.client.get(url)
436436
self.assertEqual(r.status_code,200)
437437
q = PyQuery(r.content)
438-
x = len(q('table#pending-iprs tr')) - 1 # minus header
438+
x = len(q('table.ipr-table tbody tr'))
439439
self.assertEqual(num,x)
440440

441441
def test_admin_removed(self):
@@ -452,7 +452,7 @@ def test_admin_removed(self):
452452
r = self.client.get(url)
453453
self.assertEqual(r.status_code,200)
454454
q = PyQuery(r.content)
455-
x = len(q('table#removed-iprs tr')) - 1 # minus header
455+
x = len(q('table.ipr-table tbody tr'))
456456
self.assertEqual(num,x)
457457

458458
def test_admin_parked(self):

ietf/templates/ipr/ipr_table.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% load ietf_filters %}
2-
<table class="table table-condensed table-striped">
2+
<table class="table table-condensed table-striped ipr-table">
33
<thead>
44
<tr>
5-
<th class="date-column">Date</th>
6-
<th class="id-column">ID</th>
7-
<th class="title-column">Title</th>
5+
<th>Date</th>
6+
<th>ID</th>
7+
<th>Title</th>
88
{% if administrative_list == 'pending' %}
99
<th>Query</th>
1010
<th>Response Due</th>
@@ -14,9 +14,9 @@
1414
<tbody>
1515
{% for ipr in iprs %}
1616
<tr>
17-
<td class="date-column text-nowrap">{{ ipr.time|date:"Y-m-d" }}</td>
18-
<td class="id-column nowrap">{{ ipr.id }}</td>
19-
<td class="title-column">
17+
<td class="text-nowrap">{{ ipr.time|date:"Y-m-d" }}</td>
18+
<td>{{ ipr.id }}</td>
19+
<td>
2020
{% if ipr.state_id == 'posted' or administrative_list %}
2121
<div><a href="{% url "ietf.ipr.views.show" ipr.id %}">{{ ipr.title }}</a></div>
2222
{% else %}

0 commit comments

Comments
 (0)