Skip to content

Commit 2512039

Browse files
committed
add test.tox
Signed-off-by: Ethan Lee <[email protected]>
1 parent cc5ea5d commit 2512039

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_tox.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ def test_release_environment(run_command):
3333

3434
# when
3535
help_result, _, _ = run_command("fosslight_android -h")
36-
ok_result, _, _ = run_command("fosslight_android -s test/binary.txt -n android.log")
37-
36+
ok_result, _, _ = run_command("fosslight_android -b test/binary.txt -n test/NOTICE.html -c ok")
37+
nok_result, _, _ = run_command("fosslight_android -b test/binary.txt -n test/NOTICE.html -c nok")
38+
divide_result, _, _ = run_command("fosslight_android -d test/needtoadd-notice.html")
39+
3840
# then
3941
assert help_result is True, "Help command failed"
4042
assert ok_result is True, "OK command failed"
43+
assert nok_result is True, "NOK command failed"
44+
assert divide_result is True, "Divide command failed"
4145

4246

0 commit comments

Comments
 (0)