tests package¶
Submodules¶
tests.BColors module¶
tests.test_get_data module¶
Tests the src.get_data
module
@author: Duncan Mazza
-
tests.test_get_data.
return_numpy_array_of_company_daily_stock_percent_change
(company: src.get_data.Company)[source]¶ TODO: documentation
- Parameters
company –
- Returns
-
tests.test_get_data.
test_return_numpy_array_of_company_daily_stock_close
(company: src.get_data.Company)[source]¶ TODO: documentation
- Parameters
company –
- Returns
-
tests.test_get_data.
test_save_to_csv_saves_file_no_csv_suffix
(company: src.get_data.Company, test_file_path='obscure_file_name', remove_test_file: bool = True)[source]¶ Tests whether
src.get_data.pandas_stock_data.Company.save_to_csv
saves a file whose file name is not supplied with a.csv
suffix- Parameters
company –
test_file_path –
remove_test_file –
- Returns
-
tests.test_get_data.
test_save_to_csv_saves_file_with_csv_suffix
(company: src.get_data.Company, test_file_path: str = 'obscure_file_name.csv', remove_test_file: bool = True)[source]¶ Tests whether
src.get_data.pandas_stock_data.Company.save_to_csv
saves a file whose file name is supplied with a.csv
suffix :param company: :param test_file_path: :param remove_test_file: :return: