diff --git a/tests/test_progit_flask_ui_app.py b/tests/test_progit_flask_ui_app.py index 493da7d..395717f 100644 --- a/tests/test_progit_flask_ui_app.py +++ b/tests/test_progit_flask_ui_app.py @@ -77,19 +77,21 @@ class PagureFlaskApptests(tests.Modeltests): self.session.add(item) self.session.commit() - user = tests.FakeUser() + user = tests.FakeUser(username='foo') with tests.user_set(pagure.APP, user): output = self.app.get('/?repopage=abc&forkpage=def') self.assertIn( - 'My Projects 0', + 'Projects 1', output.data) self.assertIn( - 'My Forks 0', + 'Forks 0', output.data) self.assertEqual( - output.data.count('
No projects found
'), 2) + output.data.count('No projects found
'), 1) + self.assertEqual( + output.data.count('No group found
'), 1) self.assertEqual( - output.data.count('