← 返回卡片

原书出处

Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)

First Edition · 核验版本的摘录快照 · 导入于 2026-11-14T14:46:45.586Z

Structure of arrange, act, assert (AAA) Specific and holistic assertions To illustrate these ingredients, let’s take a look at a positive and a negative example of a test. We’ll show more sophisticated tests in the next section, but for now a simple example will help us focus on the characteristics of a good test: # good example def test_convert_keys_to_snake_case_for_keys_with_spaces_or_punctuation(): # arrange (provide input conditions) user_details

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch05.html

EPUB SHA-256:d98501f374a474910f195f0adfd53c1d895ae8ddc5822476c05cd7ba006ac63d