diff --git a/requirements.txt b/requirements.txt index e6a3080..3186069 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ +tox +pytest future pandas openpyxl diff --git a/tox.ini b/tox.ini index 9096e16..bf08078 100644 --- a/tox.ini +++ b/tox.ini @@ -14,32 +14,24 @@ allowlist_externals = cat setenv = ; TYPECODE_LIBMAGIC_DB_PATH = /usr/share/file/magic.mgc - PYTHONPATH=. + PYTHONPATH={toxinidir} [flake8] max-line-length = 130 exclude = .tox/* [pytest] -filterwarnings = ignore::DeprecationWarning +testpaths = tests norecursedirs = test_result_* +filterwarnings = ignore::DeprecationWarning [testenv:test_run] deps = -r{toxinidir}/requirements.txt -changedir = {tox_root}/tests +changedir = {toxinidir}/tests commands = - ; rm -rf test_result_local_path - ; rm -rf test_result_exclude_path - ; rm -rf test_result_wget - ; fosslight -o test_result_local_path/test.xlsx -p tests -r - ; fosslight binary source -o test_result_multi_mode/test.xlsx -p tests -r - ; fosslight -o test_result_exclude_path/test.xlsx -p tests -e test sample_license.txt - ; fosslight dependency -o test_result_wget -w "https://github.com/LGE-OSS/example.git" - ; fosslight source -s tests/setting.json - ; ls test_result_wget pytest @@ -47,15 +39,7 @@ commands = deps = -r{toxinidir}/requirements-dev.txt -changedir = {tox_root}/tests +changedir = {toxinidir}/tests commands = - ; fosslight -h - ; fosslight all -o test_result_local_path/test.xlsx -p tests -r - ; fosslight binary dependency -o test_result_multi_mode/test.xlsx -p tests -r - ; fosslight -o test_result_exclude_path/test.xlsx -p tests -e test sample_license.txt - ; fosslight source -o test_result_wget -w "https://github.com/LGE-OSS/example.git" - ; fosslight binary -s tests/setting.json - pytest - pytest -v --flake8