', output.data)
output = self.app.get('/test/commits/feature')
self.assertEqual(output.status_code, 200)
- self.assertIn('
\n
',
+ output.data)
self.assertIn('Add sources file for testing', output.data)
self.assertIn('Add .gitignore file for testing', output.data)
self.assertNotIn(
- '
Commits list
\n
', output.data)
- self.assertTrue(output.data.count('
\n ', output.data)
+ self.assertEqual(
+ output.data.count('class="list-group-item p-l-3"'), 2)
@patch('pagure.lib.notify.send_email')
def test_view_file(self, send_email):
@@ -211,7 +223,12 @@ class PagureFlaskNoMasterBranchtests(tests.Modeltests):
output = self.app.get('/test/blob/feature/f/sources')
self.assertEqual(output.status_code, 200)
self.assertIn(
- '
feature/sources',
+ '
'
+ ' feature',
+ output.data)
+ self.assertIn(
+ '
'
+ ' sources',
output.data)
self.assertIn(
'
foo | ', output.data)
@@ -274,7 +291,10 @@ class PagureFlaskNoMasterBranchtests(tests.Modeltests):
output = self.app.get('/test/tree/feature')
self.assertEqual(output.status_code, 200)
self.assertIn('
', output.data)
- self.assertIn('9f4435', output.data)
+ self.assertIn(
+ '\n'
+ ' 9f4435\n | ',
+ output.data)
output = self.app.get('/test/tree/feature/sources')
self.assertEqual(output.status_code, 200)