Skip to content

Commit

Permalink
edit test_suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Feb 14, 2024
1 parent aaa2ec7 commit 49a4773
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions geovita_processing_plugin/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ def _run_tests(test_suite, package_name, with_coverage=False):
if with_coverage:
cov.stop()
cov.save()
#report = tempfile.NamedTemporaryFile(delete=False) # pylint: disable=consider-using-with
report = sys.stdout
report = tempfile.NamedTemporaryFile(delete=False) # pylint: disable=consider-using-with
#report = sys.stdout
cov.report(file=report)
# Produce HTML reports in the `htmlcov` folder and open index.html
# cov.html_report()
#report.close()
#with open(report.name, 'r', encoding='utf8') as fin:
# print(fin.read())
report.close()
with open(report.name, 'r', encoding='utf8') as fin:
print(fin.read())


def test_package(package='geovita_processing_plugin.test'):
Expand Down

0 comments on commit 49a4773

Please sign in to comment.