)]}'
{"horizon/test/tests/test_file_discovery.py":[{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"9a17e72e62e7bfce454117cca0702178566ee795","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        \"\"\"Find all files"},{"line_number":69,"context_line":"        \"\"\""},{"line_number":70,"context_line":"        files \u003d fd.discover_files(base_path)"},{"line_number":71,"context_line":"        assert len(files) \u003d\u003d 18"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    def test_find_a(self):"},{"line_number":74,"context_line":"        \"\"\"Find all files in folder `a`"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_727b008d","line":71,"updated":"2015-07-21 22:20:51.000000000","message":"I have 2 concerns about this patch.\n\n1st: is it ok to use assert instead of assertEqual here. Don\u0027t think there is a guideline, and do\u0027nt think, that __debug__ will ever be False (see https://docs.python.org/2/reference/simple_stmts.html#the-assert-statement)\nBut I would feel a bit more comfortable to see self.AssertEqual here...\n\n2d: is it a good idea to hardcode the values? Maybe it would be a bit better to count the values on the fly? On the other hand this might result in just duplicating the code itself in the tests. Therefore I\u0027m not entirely sure on this one","commit_id":"af0225052bc78476bb0625098e8c80935bd06618"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"4ac7a63751645dbf8d9814be09e6b63c74357c19","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        \"\"\"Find all files"},{"line_number":69,"context_line":"        \"\"\""},{"line_number":70,"context_line":"        files \u003d fd.discover_files(base_path)"},{"line_number":71,"context_line":"        assert len(files) \u003d\u003d 18"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    def test_find_a(self):"},{"line_number":74,"context_line":"        \"\"\"Find all files in folder `a`"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_20f1a201","line":71,"in_reply_to":"3a50d1a3_727b008d","updated":"2015-07-21 23:25:53.000000000","message":"1. Sure. Done\n\n2d. I don\u0027t agree with this. If we using a programming way to test, we should have the programming way its self tested. Hard-coded value is preferred in test IMO.","commit_id":"af0225052bc78476bb0625098e8c80935bd06618"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"7975acdeda014155314c33a3259a9c926ac60621","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        self.assertEqual(len(mocks), 2)"},{"line_number":129,"context_line":"        self.assertEqual(len(specs), 6)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        assert sources[0].endswith(\u0027.module.js\u0027)"},{"line_number":132,"context_line":"        assert sources[1].endswith(\u0027.module.js\u0027)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        assert sources[2].endswith(\u0027.controller.js\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_fd0b2a22","line":131,"updated":"2015-07-22 20:06:03.000000000","message":"Well, if you\u0027re changing some of the asserts from assert to assertEqual, you could also change these to assertTrue. On the other hand this can be done later, cause the bug, that depends on this patch does seem a drastic","commit_id":"6b2cecfec8e8356f3030a159b9def5198db9f689"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ebbec4a93c2238b5965d3a335a6853d634dbc15e","unresolved":false,"context_lines":[{"line_number":10,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":11,"context_line":"# under the License."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"from django.utils import unittest"},{"line_number":14,"context_line":"from horizon.utils import file_discovery as fd"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"base_path \u003d \u0027some_root/fake_static_files/\u0027"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a50d1a3_fc80be4b","line":13,"updated":"2015-07-24 00:56:43.000000000","message":"add a space here","commit_id":"8ebaaf95e880043b7d4a51bc18fff1ab930c8276"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ebbec4a93c2238b5965d3a335a6853d634dbc15e","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        \"\"\"Find all files"},{"line_number":69,"context_line":"        \"\"\""},{"line_number":70,"context_line":"        files \u003d fd.discover_files(base_path)"},{"line_number":71,"context_line":"        self.assertEqual(len(files), 18)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    def test_find_a(self):"},{"line_number":74,"context_line":"        \"\"\"Find all files in folder `a`"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a50d1a3_5c8c527f","line":71,"updated":"2015-07-24 00:56:43.000000000","message":"first argument for assertEqual() is the expected value, not the actual value","commit_id":"8ebaaf95e880043b7d4a51bc18fff1ab930c8276"}]}
