Skip to content

Commit

Permalink
Merge pull request #41 from fosslight/develop
Browse files Browse the repository at this point in the history
Modify the tox issue
  • Loading branch information
dd-jy authored Nov 18, 2021
2 parents b5a376a + 2297dfc commit dcda40c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include LICENSE
include README.md
include requirements.txt
include src/fosslight_util/resources/*
11 changes: 9 additions & 2 deletions tests/test_output_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2021 LG Electronics Inc.
# SPDX-License-Identifier: Apache-2.0
import sys
from fosslight_util.output_format import write_output_file
from fosslight_util.set_log import init_log

Expand Down Expand Up @@ -51,14 +52,20 @@ def main():

logger.warning("TESTING - Writing an excel output")
success, msg = write_output_file(
'test_result/output_format/FL-TEST_Excel.xlsx', '.xlsx', sheet_list)
'test_result/output_format/FL-TEST_Excel', '.xlsx', sheet_list)
logger.warning("Result:" + str(success) + ", error_msg:" + msg)

if not success:
sys.exit(1)

logger.warning("TESTING - Writing an opossum output")
success, msg = write_output_file(
'test_result/output_format/FL-TEST_opossum.json', '.json', sheet_list)
'test_result/output_format/FL-TEST_opossum', '.json', sheet_list)
logger.warning("Result:" + str(success) + ", error_msg:" + msg)

if not success:
sys.exit(1)


if __name__ == '__main__':
main()

0 comments on commit dcda40c

Please sign in to comment.