)]}'
{"octavia/tests/tempest/plugin.py":[{"author":{"_account_id":11662,"name":"Paul Glass","email":"paul.glass@rackspace.com","username":"pglass"},"change_message_id":"3609e3c7b32c183c06a1160376cd88359c2daff1","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    def load_tests(self):"},{"line_number":28,"context_line":"        base_path \u003d os.path.split(os.path.dirname("},{"line_number":29,"context_line":"            os.path.abspath(octavia.__file__)))[0]"},{"line_number":30,"context_line":"        test_dir \u003d \"octavia/tests/tempest\""},{"line_number":31,"context_line":"        full_test_dir \u003d os.path.join(base_path, test_dir)"},{"line_number":32,"context_line":"        return full_test_dir, base_path"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa7ab95a_ef49e98f","line":30,"updated":"2016-08-31 21:38:21.000000000","message":"This is the right thing to do here. This returns the base_path to be the directory containing the octavia module, and returns \u003cbase_path\u003e/octavia/tests/tempest as the directory to recursively search for tempest tests.\n\n\nJust to clarify, tempest passes along this directory information to a unittest-compatible test loader:\n\nhttps://github.com/openstack/tempest/blob/master/tempest/test_discover/test_discover.py#L47-L53\n\nIt passes these paths into the loader.discover(..) method, https://docs.python.org/2/library/unittest.html#unittest.TestLoader.discover,\n\n\"All test modules must be importable from the top level of the project. If the start directory is not the top level directory then the top level directory must be specified separately.\"","commit_id":"0ccb75d402689580983b32219c611beee4120c24"}]}
