scripts/notebooks/test.py
def testSlicedResultSize(self):
        """
        Test limit_result_size function return the desired result size
        """
        query_github = BT_mining_script_for_testing.query_github
        limit_result_size = BT_mining_script_for_testing.limit_result_size
               
        desired_size = 10
        g = Github(self.data)
        result = query_github(g ,keywords = "py_trees_ros")
        self.assertEqual(len(list(limit_result_size(result,desired_size))), desired_size, "the limit_result_size function did not slice the result size")

        Test limit_result_size function return the desired result size
        
Test limit_result_size function return the desired result size
Test limit_result_size function return the desired result size
def testSlicedResultSize(self):
        query_github = BT_mining_script_for_testing.query_github
        limit_result_size = BT_mining_script_for_testing.limit_result_size
        desired_size = 10
        g = Github(self.data)
        result = query_github(g ,keywords = "py_trees_ros")
        self.assertEqual(len(list(limit_result_size(result,desired_size))), desired_size, "the limit_result_size function did not slice the result size")
def testSlicedResultSize ( self ) : query_github = BT_mining_script_for_testing . query_github limit_result_size = BT_mining_script_for_testing . limit_result_size desired_size = 10 g = Github ( self . data ) result = query_github ( g , keywords = "py_trees_ros" ) self . assertEqual ( len ( list ( limit_result_size ( result , desired_size ) ) ) , desired_size , "the limit_result_size function did not slice the result size" )
Test limit_result_size function return the desired result size
Test limit_result_size function return the desired result size
"""
        Test limit_result_size function return the desired result size
        """
self