euscanwww: test fixes and minor PEP8 fixes
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
@ -99,4 +99,4 @@ class MaintainerChartTests(ChartTests):
|
||||
def setUp(self):
|
||||
super(MaintainerChartTests, self).setUp()
|
||||
self.url = "chart_maintainer"
|
||||
self.kwargs = {"maintainer_id": MaintainerFactory.create().id}
|
||||
self.kwargs = {"maintainer_id": MaintainerFactory.create().pk}
|
||||
|
@ -92,7 +92,8 @@ class SectionTests(SystemTestCase):
|
||||
soup = BeautifulSoup(response.content)
|
||||
rows = soup.findAll("tr")
|
||||
|
||||
self.assertEqual(len(rows), len(items))
|
||||
# the -1 is for the table heading
|
||||
self.assertEqual(len(rows) - 1, len(items))
|
||||
|
||||
for item in items:
|
||||
if attr:
|
||||
|
Reference in New Issue
Block a user