gdxpds.test package

Submodules

gdxpds.test.conftest module

gdxpds.test.conftest.pytest_addoption(parser)[source]
gdxpds.test.conftest.clean_up(request)[source]

gdxpds.test.test_conversions module

gdxpds.test.test_conversions.roundtrip_one_gdx(filename, dirname)[source]
gdxpds.test.test_conversions.test_gdx_roundtrip(manage_rundir)[source]
gdxpds.test.test_conversions.test_csv_roundtrip(manage_rundir)[source]

gdxpds.test.test_read module

gdxpds.test.test_read.test_read()[source]
gdxpds.test.test_read.test_read_none()[source]
gdxpds.test.test_read.test_read_path()[source]
gdxpds.test.test_read.test_unload()[source]

gdxpds.test.test_session module

gdxpds.test.test_session.manage_rundir(request, clean_up)[source]

At the beginning of the session, creates the test run_dir. If test.clean_up, deletes this folder after the tests have finished running.

Arguments - request contains the pytest session, including collected tests

gdxpds.test.test_specials module

gdxpds.test.test_specials.value_column_index(sym, gams_value_type)[source]
gdxpds.test.test_specials.test_roundtrip_just_special_values(manage_rundir)[source]
gdxpds.test.test_specials.test_roundtrip_special_values(manage_rundir)[source]
gdxpds.test.test_specials.test_special_integrity()[source]

Check that the special values line up

gdxpds.test.test_specials.test_numpy_eps()[source]
gdxpds.test.test_specials.test_convert_np_to_gdx_svs_eps()[source]

gdxpds.test.test_write module

gdxpds.test.test_write.test_from_scratch_sets(manage_rundir)[source]
gdxpds.test.test_write.test_unnamed_dimensions(manage_rundir)[source]
gdxpds.test.test_write.test_setting_dataframes(manage_rundir)[source]
gdxpds.test.test_write.test_parameter_with_nulls(manage_rundir)[source]

Module contents

gdxpds.test.apply_dirname(f, num_times)[source]