Skip to content

Commit

Permalink
test_pyi25.py : added tests to increase coverage from 81% to 86%
Browse files Browse the repository at this point in the history
Signed-off-by: SONIABHISHEK121 <[email protected]>
  • Loading branch information
ABHISHEKSONI121 committed Jul 11, 2024
1 parent 70dd709 commit d2b98a8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/test_pyi25.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ def test_main_custom_archivo():
os.remove("custom_test.jpg")


@pytest.mark.parametrize("platform", ["win32", "darwin"])
def test_main_mostrar_non_linux(mocker, platform):
mocker.patch("sys.platform", platform)
mocker.patch("os.startfile")
sys.argv = ["pyi25.py", "--mostrar"]
main()
os.startfile.assert_called_once()


def test_GenerarImagen_odd_length_code():
barras = "12345"
archivo = "odd_test.png"
Expand Down Expand Up @@ -148,3 +139,7 @@ def test_main_with_noverificador():
with open("prueba-cae-i25.png", "rb") as f:
content = f.read()
assert len(content) > 0
<<<<<<< HEAD
=======

>>>>>>> 6922dcc (test_pyi25.py : added tests to increase coverage from 81% to 86%)

0 comments on commit d2b98a8

Please sign in to comment.