scripts/notebooks/test.py
def testNumberReturnedFiles (self, mock_stdout):
        """
        Test query function return specific number of files
        
        """
        query_github = BT_mining_script_for_testing.query_github
               
        g = Github(self.data)
        expected_output = "Found 254 file(s)\n"
        
        query_github(g ,keywords = "py_trees_ros")
        self.assertEqual(mock_stdout.getvalue(), expected_output, "Number of files differ from the paper based results")

        Test query function return specific number of files
        
        
Test query function return specific number of files
Test query function return specific number of files
def testNumberReturnedFiles (self, mock_stdout):
        query_github = BT_mining_script_for_testing.query_github
        g = Github(self.data)
        expected_output = "Found 254 file(s)\n"
        query_github(g ,keywords = "py_trees_ros")
        self.assertEqual(mock_stdout.getvalue(), expected_output, "Number of files differ from the paper based results")
def testNumberReturnedFiles ( self , mock_stdout ) : query_github = BT_mining_script_for_testing . query_github g = Github ( self . data ) expected_output = "Found 254 file(s)\n" query_github ( g , keywords = "py_trees_ros" ) self . assertEqual ( mock_stdout . getvalue ( ) , expected_output , "Number of files differ from the paper based results" )
Test query function return specific number of files
Test query function return specific number of files
"""
        Test query function return specific number of files
        
        """
self
mock_stdout