[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fW-cnt6NvD9Lsw2mzWv-7zYJxVfVbgDYpjvcocihosyM":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":31,"type":32},[],"2025-05-07 16:51:08",186136234,[8,9,10,11],"测试代码的运行速度-","测试代码的可读性-","避免重复代码,简化测试环境的搭建-","增加测试代码的复杂性-",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},14,"71b49d56918b25f6fa1836656212a7dc","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9c1e48361b00f3ee2086f4e259ed792b.jpg","人工智能导论","work_43400788","作业2","使用夹具(fixture)的主要目的是什么?( ) -",[21,33,42,51,60,69,78,87,96,105],{"answer":22,"createTime":23,"id":24,"options":25,"question":30,"source":31,"type":32},[],"2025-05-07 16:51:07",186136196,[26,27,28,29],"pip install --upgrade pip-","python -m pip install --upgrade pip-","python -m pip upgrade pip-","pip upgrade pip","以下哪个命令是用来更新pip模块的?( ) -","v1",0,{"answer":34,"createTime":23,"id":35,"options":36,"question":41,"source":31,"type":32},[],186136198,[37,38,39,40],"标准库中的库-","独立于Python核心的库-","系统内置的库-","只在特定操作系统上可用的库-","第三方包(third-party package)通常指的是什么?( ) -",{"answer":43,"createTime":23,"id":44,"options":45,"question":50,"source":31,"type":32},[],186136200,[46,47,48,49],"pip install pytest-","python -m pip install pytest-","python -m pip install --user pytest-","pip install --user pytest-","安装第三方包pytest的正确命令是什么?( ) -",{"answer":52,"createTime":23,"id":53,"options":54,"question":59,"source":31,"type":32},[],186136202,[55,56,57,58],"get_formatted_name-","format_name-","create_full_name-","generate_name-","以下哪个函数是用于生成格式规范的姓名的?( ) -",{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":31,"type":32},[],186136204,[64,65,66,67],"测试用例-","功能测试-","集成测试-","系统测试-","单元测试(unit test)包含什么?( ) -",{"answer":70,"createTime":5,"id":71,"options":72,"question":77,"source":31,"type":32},[],186136206,[73,74,75,76],"函数可能收到的各种输入-","函数的执行效率-","函数在各种情况下的行为-","函数的输出是否符合预期-","以下哪个不是编写测试用例时需要考虑的因素?( ) -",{"answer":79,"createTime":5,"id":80,"options":81,"question":86,"source":31,"type":32},[],186136209,[82,83,84,85],"以test_开头-","以test结尾-","包含test单词-","以.py结尾-","pytest测试框架中,测试文件的命名规则是什么?( ) -",{"answer":88,"createTime":5,"id":89,"options":90,"question":95,"source":31,"type":32},[],186136212,[91,92,93,94],"assert 1 &gt; 2-","assert 'a' in ['a', 'b', 'c']-","assert 1 == '1'-","assert True == False-","以下哪个断言是正确的?( ) -",{"answer":97,"createTime":5,"id":98,"options":99,"question":104,"source":31,"type":32},[],186136216,[100,101,102,103],"直接运行测试文件-","在终端窗口执行命令python -m pytest-","使用python test_name_function.py运行测试-","使用pytest test_name_function命令-","运行pytest测试时,以下哪个操作是正确的?( ) -",{"answer":106,"createTime":5,"id":107,"options":108,"question":113,"source":31,"type":32},[],186136220,[109,110,111,112],"修改测试代码以通过测试-","忽略测试结果-","修复被测试的代码-","重新运行测试-","如果测试未通过,以下哪个操作是正确的?( ) -"]