"Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError _____________ test_bad_values_stop_with_line_number[Oran;1;5,00;8] _____________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_with_line1') bad_line = 'Oran;1;5,00;8' @pytest.mark.parametrize("bad_line", [ "Eksik;1;5,00", "Oran;1;5,00;8", "Metin;abc;5,00;20", "Fiyat;1;5,00 TL;20", "Kutle;1,5;5,00;20", "Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError ___________ test_bad_values_stop_with_line_number[Metin;abc;5,00;20] ___________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_with_line2') bad_line = 'Metin;abc;5,00;20' @pytest.mark.parametrize("bad_line", [ "Eksik;1;5,00", "Oran;1;5,00;8", "Metin;abc;5,00;20", "Fiyat;1;5,00 TL;20", "Kutle;1,5;5,00;20", "Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError __________ test_bad_values_stop_with_line_number[Fiyat;1;5,00 TL;20] ___________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_with_line3') bad_line = 'Fiyat;1;5,00 TL;20' @pytest.mark.parametrize("bad_line", [ "Eksik;1;5,00", "Oran;1;5,00;8", "Metin;abc;5,00;20", "Fiyat;1;5,00 TL;20", "Kutle;1,5;5,00;20", "Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError ___________ test_bad_values_stop_with_line_number[Kutle;1,5;5,00;20] ___________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_with_line4') bad_line = 'Kutle;1,5;5,00;20' @pytest.mark.parametrize("bad_line", [ "Eksik;1;5,00", "Oran;1;5,00;8", "Metin;abc;5,00;20", "Fiyat;1;5,00 TL;20", "Kutle;1,5;5,00;20", "Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError ___________ test_bad_values_stop_with_line_number[Fazla;1;5,00;20;x] ___________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_with_line5') bad_line = 'Fazla;1;5,00;20;x' @pytest.mark.parametrize("bad_line", [ "Eksik;1;5,00", "Oran;1;5,00;8", "Metin;abc;5,00;20", "Fiyat;1;5,00 TL;20", "Kutle;1,5;5,00;20", "Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError __________ test_bad_values_stop_with_line_number[Bo\u015ffiyat;1;;20] __________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_with_line6') bad_line = 'Boşfiyat;1;;20' @pytest.mark.parametrize("bad_line", [ "Eksik;1;5,00", "Oran;1;5,00;8", "Metin;abc;5,00;20", "Fiyat;1;5,00 TL;20", "Kutle;1,5;5,00;20", "Fazla;1;5,00;20;x", "Boşfiyat;1;;20", ]) def test_bad_values_stop_with_line_number(tmp_path, bad_line): res = run(tmp_path, HEADER + "ilk;1;1,00;20\n" + bad_line + "\n") > assert res.returncode == 2 E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bad_values_stop_wi...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_totals.py:96: AssertionError ----------------- generated xml file: /work/creovum-report.xml ----------------- =========================== short test summary info ============================ FAILED tests/test_explanations.py::test_every_total_is_labelled_in_words[args0] FAILED tests/test_explanations.py::test_every_total_is_labelled_in_words[args1] FAILED tests/test_explanations.py::test_success_keeps_zero_tax_rates_visible FAILED tests/test_explanations.py::test_error_says_line_and_what_to_do[Eksik kayit;2;5,00] FAILED tests/test_explanations.py::test_error_says_line_and_what_to_do[Oran;1;5,00;5] FAILED tests/test_explanations.py::test_error_says_line_and_what_to_do[Fiyat;tarif;5,00;20] FAILED tests/test_totals.py::test_totals_correctly_for_each_line - AssertionE... FAILED tests/test_totals.py::test_half_kurus_rounds_up - AssertionError: /usr... FAILED tests/test_totals.py::test_empty_file_reports_zero - AssertionError: /... FAILED tests/test_totals.py::test_discount_applied_before_vat - AssertionErro... FAILED tests/test_totals.py::test_single_line_error_with_line_number - assert... FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Eksik;1;5,00] FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Oran;1;5,00;8] FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Metin;abc;5,00;20] FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Fiyat;1;5,00 TL;20] FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Kutle;1,5;5,00;20] FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Fazla;1;5,00;20;x] FAILED tests/test_totals.py::test_bad_values_stop_with_line_number[Bo\u015ffiyat;1;;20] 18 failed in 0.58s