test_config.py 文件源码

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

项目:projects 作者: tiborsimon 项目源码 文件源码
def test__config_file_is_opened_from_the_right_path(self, mock_path, mock_yaml):
        dummy_config_path = '/config/path'
        mock_path.return_value = dummy_config_path
        with mock.patch(open_mock_string) as mock_open:
            config._load_config()
            mock_open.assert_called_with(dummy_config_path, 'r')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号