test_test_importing.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:pythonwhat 作者: datacamp 项目源码 文件源码
def test_Pass(self):
        self.data["DC_SCT"] = '''
# Test: call to read_sql_query() and 'df' variable

test_correct(
        lambda: test_object("df"),
        lambda: test_function("pandas.read_sql_query", do_eval = False)
)

# Test: Predefined code
predef_msg = "You don't have to change any of the predefined code."
test_function("print", incorrect_msg = predef_msg)

success_msg("Great work!")
        '''
        sct_payload = helper.run(self.data)
        self.assertFalse(sct_payload['correct'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号