From 7ae126914709dc3b65c01af534d37a6791bfe09f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 22 2016 14:50:22 +0000 Subject: By not relying on pygit2's behavior we're better at detecting binaries And we can enable again this part of the tests :) --- diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index ca0808d..dfea3c6 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -883,11 +883,10 @@ class PagureFlaskRepotests(tests.Modeltests): # View binary file output = self.app.get('/test/blob/sources/f/test_binary') self.assertEqual(output.status_code, 200) - # In newer pygit2 patch.is_binary behaves differently - #self.assertIn('/f/test_binary">view the raw version', output.data) - #self.assertTrue( - #'Binary files cannot be rendered.
' - #in output.data) + self.assertIn('/f/test_binary">view the raw version', output.data) + self.assertTrue( + 'Binary files cannot be rendered.
' + in output.data) # View folder output = self.app.get('/test/blob/master/f/folder1')