test_utils module¶
-
class
test_utils.
BaseballSituation
(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]¶ Bases: argschema.schemas.ArgSchema
A description of a baseball situation
This schema is designed to be a schema_type for an ArgSchemaParser objectBaseballSituation¶ key description default field_type json_type input_json file path of input json file NA InputFile str output_json file path to output json file NA OutputFile str log_level set the logging level of the module ERROR LogLevel str inning inning (1-9) (REQUIRED) Integer int bottom is it the bottom of the inning (REQUIRED) Boolean bool score_home home team score (non-negative) (REQUIRED) Integer int score_away away team score (non-negative) (REQUIRED) Integer int outs number of outs (0-2) (REQUIRED) Integer int balls number of balls (0-4) 0 Integer int strikes how many strikes (0-2) (REQUIRED) Integer int bases_occupied which bases are occupied NA unknown unknown batter who is batting (REQUIRED) Player dict pitcher who is pitching (REQUIRED) Player dict -
opts
= <marshmallow.schema.SchemaOpts object>¶
-
-
class
test_utils.
Player
(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]¶ Bases: argschema.schemas.DefaultSchema
player information
Player¶ key description default field_type json_type name players name (REQUIRED) String str number player’s number (must be >0) (REQUIRED) Integer int -
opts
= <marshmallow.schema.SchemaOpts object>¶
-