def test_extract_input_type_preprocess(): impl = importlib.import_module('mock_app.mock_post_preprocess') datatype = extract_input_type(impl) assert datatype is MockData
def test_extract_input_type_builtin_type(): impl = importlib.import_module('mock_app.mock_post_auth') datatype = extract_input_type(impl) assert datatype is str
def test_extract_input_type_none(): impl = importlib.import_module('mock_app.mock_event') datatype = extract_input_type(impl) assert datatype is None
def test_extract_input_type_dataclass(): impl = importlib.import_module('mock_app.mock_post_event') datatype = extract_input_type(impl) assert datatype is MockData