tests package

Submodules

tests.BColors module

class tests.BColors.BColors[source]

Bases: object

Struct of ANSI escape sequences

BOLD = '\x1b[1m'
ENDC = '\x1b[0m'
FAIL = '\x1b[91m'
HEADER = '\x1b[95m'
OKBLUE = '\x1b[94m'
OKGREEN = '\x1b[92m'
UNDERLINE = '\x1b[4m'
WARNING = '\x1b[93m'
WHITE = '\x1b[39m'

tests.test_get_data module

Tests the src.get_data module

@author: Duncan Mazza

tests.test_get_data.company()[source]

TODO: documentation

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:

tests.test_rnn module

tests.test_rnn.test_populate_daily_stock_data(_stock_rnn: src.StockRNN.StockRNN)[source]

TODO: documentation

tests.test_rnn.test_populate_test_train_creates_correct_number_of_randomly_ordered_segments(_stock_rnn: src.StockRNN.StockRNN)[source]

TODO: documentation

Module contents