readers_test.py 文件源码

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

项目:micromasters 作者: mitodl 项目源码 文件源码
def test_exam_read_no_shows(self):
        """Test that a typical no-show result from Perason does not result in any errors"""
        test_file_path = '{}/exams/pearson/test_resources/noshow.dat'.format(settings.BASE_DIR)

        reader = EXAMReader()
        with open(test_file_path, 'r') as test_file:
            results = reader.read(test_file)

        # Assert that there are no error messages in the results tuple
        assert len(results[1]) == 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号