Skip to main content
Ctrl+K

S5 1.0b10 documentation

Site Navigation

  • API Documentation

Site Navigation

  • API Documentation

Section Navigation

  • S5
    • S5.HPC
      • S5.HPC.SolarSim
        • S5.HPC.SolarSim.const_vel
        • S5.HPC.SolarSim.file_swap
        • S5.HPC.SolarSim.file_sweep
        • S5.HPC.SolarSim.file_sweep_par
        • S5.HPC.SolarSim.read_file_sweep
        • S5.HPC.SolarSim.read_vel_sweep
        • S5.HPC.SolarSim.run_ss
        • S5.HPC.SolarSim.vel_sweep
        • S5.HPC.SolarSim.vel_sweep_par
      • S5.HPC.file_io
        • S5.HPC.file_io.adjust_v
        • S5.HPC.file_io.lin2win
        • S5.HPC.file_io.read_history
        • S5.HPC.file_io.win2lin
        • S5.HPC.file_io.write_vel
      • S5.HPC.optimisation
        • S5.HPC.optimisation.calc_strat
        • S5.HPC.optimisation.calc_strat_new
        • S5.HPC.optimisation.extract_prime
        • S5.HPC.optimisation.set_mean
    • S5.Tecplot
      • S5.Tecplot.DSWinput
      • S5.Tecplot.SSHistory
      • S5.Tecplot.SSWeather
      • S5.Tecplot.TPHeaderZone
      • S5.Tecplot.TecplotData
    • S5.Weather
      • S5.Weather.convert_wind
      • S5.Weather.to_csv
      • S5.Weather.to_parquet
      • S5.Weather.upload_file
      • S5.Weather.readgrib
        • S5.Weather.readgrib.cumulative_ssr_to_hourly
        • S5.Weather.readgrib.era5_spot
        • S5.Weather.readgrib.extract_df
        • S5.Weather.readgrib.from_era5
        • S5.Weather.readgrib.ssr_to_direct_and_diffuse
      • S5.Weather.solcast_forecast
        • S5.Weather.solcast_forecast.send_forecast_request
        • S5.Weather.solcast_forecast.send_live_request
        • S5.Weather.solcast_forecast.send_request_old
      • S5.Weather.solcast_historic
        • S5.Weather.solcast_historic.get_file_list
        • S5.Weather.solcast_historic.main
        • S5.Weather.solcast_historic.map_files
        • S5.Weather.solcast_historic.read_solcast_csv
      • S5.Weather.tomorrow_forecast
        • S5.Weather.tomorrow_forecast.send_request
    • S5.nonosquare
      • S5.nonosquare.why
    • S5.tests
      • S5.tests.conftest
        • S5.tests.conftest.history_df
        • S5.tests.conftest.history_file
        • S5.tests.conftest.history_tp
        • S5.tests.conftest.road_file
        • S5.tests.conftest.solarsim_in
        • S5.tests.conftest.velocity_file
        • S5.tests.conftest.weather_file
      • S5.tests.test_SolarSim
        • S5.tests.test_SolarSim.mock_Popen
        • S5.tests.test_SolarSim.mock_read_history
        • S5.tests.test_SolarSim.mock_sp
        • S5.tests.test_SolarSim.test_const_vel
        • S5.tests.test_SolarSim.test_file_swap
        • S5.tests.test_SolarSim.test_file_sweep_output_filename
        • S5.tests.test_SolarSim.test_file_sweep_par
        • S5.tests.test_SolarSim.test_file_sweep_times_called
        • S5.tests.test_SolarSim.test_read_file_sweep
        • S5.tests.test_SolarSim.test_read_vel_sweep
        • S5.tests.test_SolarSim.test_run_ss
        • S5.tests.test_SolarSim.test_run_ss_timeout
        • S5.tests.test_SolarSim.test_run_ss_with_lock
        • S5.tests.test_SolarSim.test_vel_sweep_output_filename
        • S5.tests.test_SolarSim.test_vel_sweep_par
        • S5.tests.test_SolarSim.test_vel_sweep_times_called
      • S5.tests.test_Tecplot
        • S5.tests.test_Tecplot.test_DSWinput_bad_value
        • S5.tests.test_Tecplot.test_DSWinput_format
        • S5.tests.test_Tecplot.test_DSWinput_get_value
        • S5.tests.test_Tecplot.test_DSWinput_read_write
        • S5.tests.test_Tecplot.test_DSWinput_set_value
        • S5.tests.test_Tecplot.test_bad_read_tecplot_file
        • S5.tests.test_Tecplot.test_check_zone
        • S5.tests.test_Tecplot.test_construct_DWSinnput
        • S5.tests.test_Tecplot.test_headerzone_to_string
        • S5.tests.test_Tecplot.test_hist_tp
        • S5.tests.test_Tecplot.test_history_add_timestamp
        • S5.tests.test_Tecplot.test_history_read
        • S5.tests.test_Tecplot.test_print_headerzone
        • S5.tests.test_Tecplot.test_print_tpdata
        • S5.tests.test_Tecplot.test_read_DSWinput
        • S5.tests.test_Tecplot.test_read_bad_title
        • S5.tests.test_Tecplot.test_read_bad_var_title
        • S5.tests.test_Tecplot.test_read_bad_zone_title
        • S5.tests.test_Tecplot.test_read_tecplot_file
        • S5.tests.test_Tecplot.test_read_write
        • S5.tests.test_Tecplot.test_read_write_with_datum
        • S5.tests.test_Tecplot.test_tecplotdata_constructor
        • S5.tests.test_Tecplot.test_tecplotheaderzone_constructor
        • S5.tests.test_Tecplot.test_weather_add_day_time_cols
        • S5.tests.test_Tecplot.test_weather_add_day_time_cols_invalid_index
        • S5.tests.test_Tecplot.test_weather_add_timestamp
        • S5.tests.test_Tecplot.test_weather_check_rectangular
        • S5.tests.test_Tecplot.test_weather_read
        • S5.tests.test_Tecplot.test_write_empty
      • S5.tests.test_file_io
        • S5.tests.test_file_io.test_adjust_v
        • S5.tests.test_file_io.test_history_summary
        • S5.tests.test_file_io.test_history_summary_avgvel
        • S5.tests.test_file_io.test_lin2win
        • S5.tests.test_file_io.test_win2lin
        • S5.tests.test_file_io.test_write_vel_default_name
        • S5.tests.test_file_io.test_write_vel_float
        • S5.tests.test_file_io.test_write_vel_int
        • S5.tests.test_file_io.test_write_vel_pandas
      • S5.tests.test_nonosquare
        • S5.tests.test_nonosquare.test_why
      • S5.tests.test_optimisation
        • S5.tests.test_optimisation.test_calc_strat
        • S5.tests.test_optimisation.test_calc_strat_zero
        • S5.tests.test_optimisation.test_set_mean
        • S5.tests.test_optimisation.test_set_mean_clip_kph
        • S5.tests.test_optimisation.test_set_mean_clip_kph_lin
        • S5.tests.test_optimisation.test_set_mean_clip_ms
        • S5.tests.test_optimisation.test_set_mean_const
        • S5.tests.test_optimisation.test_set_mean_linear
      • S5.tests.test_readgrib
        • S5.tests.test_readgrib.grib_df
        • S5.tests.test_readgrib.mock_extract_df
        • S5.tests.test_readgrib.test_calculate_wind
        • S5.tests.test_readgrib.test_cumulative_ssr_to_hourly_complex
        • S5.tests.test_readgrib.test_cumulative_ssr_to_hourly_one_day
        • S5.tests.test_readgrib.test_era5_spot
        • S5.tests.test_readgrib.test_from_era5
        • S5.tests.test_readgrib.test_from_era5_backfill
        • S5.tests.test_readgrib.test_from_era5_no_solar
      • S5.tests.test_solcast_forecast
        • S5.tests.test_solcast_forecast.mock_solcast_response
        • S5.tests.test_solcast_forecast.test_send_forecast_requests
        • S5.tests.test_solcast_forecast.test_send_forecast_requests_timeout
        • S5.tests.test_solcast_forecast.test_send_live_requests
        • S5.tests.test_solcast_forecast.test_send_live_requests_timeout
        • S5.tests.test_solcast_forecast.test_send_request
        • S5.tests.test_solcast_forecast.test_send_request_failure
        • S5.tests.test_solcast_forecast.MockResponse
      • S5.tests.test_solcast_historic
        • S5.tests.test_solcast_historic.mock_read_solcast_csv
        • S5.tests.test_solcast_historic.solcast_hist_csv
        • S5.tests.test_solcast_historic.test_get_file_list
        • S5.tests.test_solcast_historic.test_main
        • S5.tests.test_solcast_historic.test_main_mismatch_timezone
        • S5.tests.test_solcast_historic.test_map_files
        • S5.tests.test_solcast_historic.test_map_files_missing_col
        • S5.tests.test_solcast_historic.test_map_files_missing_point_in_road
        • S5.tests.test_solcast_historic.test_read_solcast_csv
      • S5.tests.test_tomorrow_forecast
        • S5.tests.test_tomorrow_forecast.mock_tomorrow_response
        • S5.tests.test_tomorrow_forecast.test_send_request_execption
        • S5.tests.test_tomorrow_forecast.test_send_request_failure
        • S5.tests.test_tomorrow_forecast.test_send_request_success
      • S5.tests.test_weather
        • S5.tests.test_weather.test_to_csv
        • S5.tests.test_weather.test_to_parquet
    • S5.visualisation
      • S5.visualisation.get_weather
      • S5.visualisation.plot_airspeed
      • S5.visualisation.plot_contor
      • S5.visualisation.plot_trace
  • API Documentation
  • S5.tests
  • S5.tests.test_solcast_forecast

S5.tests.test_solcast_forecast#

Functions

mock_solcast_response()

test_send_forecast_requests(monkeypatch, ...)

test_send_forecast_requests_timeout(...)

test_send_live_requests(monkeypatch, ...)

test_send_live_requests_timeout(monkeypatch, ...)

test_send_request(monkeypatch, caplog)

test_send_request_failure(monkeypatch, caplog)

Classes

MockResponse(status_code, text)

previous

S5.tests.test_readgrib.test_from_era5_no_solar

next

S5.tests.test_solcast_forecast.mock_solcast_response

Show Source

© Copyright 2024, Owen Foo.

Created using Sphinx 7.1.2.

Built with the PyData Sphinx Theme 0.14.0.