第一个文件中:def download_data(param): # code to download data from the internet based on the parameter第二个文件中:def test_function(): # call the download_data function data = download_data(param) # check the output result assert data == expected_result
第一个文件中:def download_data(param): # code to download data from the internet based on the parameter第二个文件中:def test_function(): # call the download_data function data = download_data(param) # check the output result assert data == expected_result