Skip to content

Commit

Permalink
fix clear init bug (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonGao authored Dec 21, 2018
1 parent ee90fd4 commit 838dcc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lyrebird_api_coverage/app_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ def resume_test(self):

def clear_result(self):
ResultHandler().clear_cache_result()
self.get_coverage()
# 获取基准文件
base_dict = BaseDataHandler().get_base_source()
# 初始化正常会进行数据的处理:覆盖率初始化 & API LIST初始化
if not isinstance(base_dict, Response):
mergeAlgorithm.first_result_handler(base_dict)
mergeAlgorithm.coverage_arithmetic(base_dict)
lyrebird.publish('api_coverage', 'operation', name='clear_result')
return context.make_ok_response()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='lyrebird-api-coverage',
version='0.2.7',
version='0.2.8',
packages=['lyrebird_api_coverage'],
url='https://github.com/meituan/lyrebird-api-coverage',
author='HBQA',
Expand Down

0 comments on commit 838dcc4

Please sign in to comment.