def test_resource_config(): test.write_json(RESOURCE_CONFIG, environment.resource_config_file_dir) assert environment.read_resource_config() == RESOURCE_CONFIG
def test_input_data_config(): test.write_json(INPUT_DATA_CONFIG, environment.input_data_config_file_dir) assert environment.read_input_data_config() == INPUT_DATA_CONFIG
def test_read_value_serialized_hyperparameters(): serialized_hps = {k: json.dumps(v) for k, v in ALL_HYPERPARAMETERS.items()} test.write_json(serialized_hps, environment.hyperparameters_file_dir) assert environment.read_hyperparameters() == ALL_HYPERPARAMETERS
def test_read_hyperparameters(): test.write_json(ALL_HYPERPARAMETERS, environment.hyperparameters_file_dir) assert environment.read_hyperparameters() == ALL_HYPERPARAMETERS
def test_read_hyperparameters(): test.write_json(ALL_HYPERPARAMETERS, _env.hyperparameters_file_dir) assert _env.read_hyperparameters() == ALL_HYPERPARAMETERS
def test_input_data_config(): test.write_json(INPUT_DATA_CONFIG, _env.input_data_config_file_dir) assert _env.read_input_data_config() == INPUT_DATA_CONFIG
def test_resource_config(): test.write_json(RESOURCE_CONFIG, _env.resource_config_file_dir) assert _env.read_resource_config() == RESOURCE_CONFIG