tests package

Submodules

tests.test_data_generator module

tests.test_data_generator.test_generate_prices()[source]
tests.test_data_generator.test_price_series_generator_initialization()[source]

tests.test_data_processor module

tests.test_data_processor.df()[source]

Fixture to provide a DataFrame for testing stationarity.

tests.test_data_processor.sample_data()[source]

Fixture to provide sample data for testing.

tests.test_data_processor.sample_df()[source]

Create a sample DataFrame with NaN values for testing.

tests.test_data_processor.test_create_handler_drop()[source]

Test the create_handler method of MissingDataHandlerFactory with ‘drop’ strategy.

tests.test_data_processor.test_create_handler_forward_fill()[source]

Test the create_handler method of MissingDataHandlerFactory with ‘forward_fill’ strategy.

tests.test_data_processor.test_create_handler_invalid_strategy()[source]

Test the create_handler method of MissingDataHandlerFactory with an invalid strategy.

tests.test_data_processor.test_drop_na()[source]

Test drop_na method removes rows with NaN values.

tests.test_data_processor.test_fill_data(sample_df)[source]

Test fill_data with various filling methods.

tests.test_data_processor.test_forward_fill(sample_df)[source]

Test forward_fill method correctly propagates values forward.

tests.test_data_processor.test_stationarity_integration()[source]

Integration test for test_stationarity with real adfuller function.

tests.test_data_processor.test_ts_stationarity(mock_adfuller)[source]

Test test_stationarity function properly uses adfuller test.

tests.test_stats_model_arima module

tests.test_stats_model_arima.sample_data()[source]

gen ts data for arima tests

tests.test_stats_model_arima.test_model_arima_fit(sample_data)[source]

test fit method

tests.test_stats_model_arima.test_model_arima_forecast(sample_data)[source]

test forecast result

tests.test_stats_model_arima.test_model_arima_initialization(sample_data)[source]

test arima init

tests.test_stats_model_arima.test_model_arima_summary(sample_data)[source]

test summary output

tests.test_stats_model_garch module

tests.test_stats_model_garch.garch_sample_data()[source]

Generate data with volatility clustering for GARCH tests

tests.test_stats_model_garch.stationary_sample_data()[source]

gen stationary data for modeling

tests.test_stats_model_garch.test_model_garch_different_params(garch_sample_data)[source]

test diff p,q params

tests.test_stats_model_garch.test_model_garch_fit(garch_sample_data)[source]

test fitting garch

tests.test_stats_model_garch.test_model_garch_forecast(garch_sample_data)[source]

test forecast output

tests.test_stats_model_garch.test_model_garch_initialization(garch_sample_data)[source]

test garch init

tests.test_stats_model_garch.test_model_garch_student_t_dist(garch_sample_data)[source]

test t-dist

tests.test_stats_model_garch.test_model_garch_summary(garch_sample_data)[source]

test summary method

tests.test_stats_model_garch.test_run_garch_function(garch_sample_data)[source]

test convenience func

Module contents