st-0/test_satir_hatasi_urun_...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_fatura.py:130: AssertionError _____ test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;fiyat;20\n-2] _____ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_satir_hatasi_urun_adet_bi6') csv = 'urun;adet;birim_fiyat;kdv_orani\nA;1;fiyat;20\n', number = 2 @pytest.mark.parametrize( ("csv", "number"), [ ("urun;adet;birim_fiyat\nA;1;10,00\n", 1), (HEADER + "A;1;10,00;20\nB;1;5,00;8\nC;1;7,00;5\n", 3), (HEADER + "A;1;10,00\n", 2), (HEADER + "A;1;;20\n", 2), (HEADER + ";1;10,00;20\n", 2), (HEADER + "A;bir;10,00;20\n", 2), (HEADER + "A;1;fiyat;20\n", 2), (HEADER + "A;1;10,00;20;fazla\n", 2), ], ) def test_satir_hatasi(tmp_path, csv, number): result = run_invoice(tmp_path, csv) > assert result.returncode == 2, result.stdout + result.stderr E AssertionError: /usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed E E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_satir_hatasi_urun_...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_fatura.py:130: AssertionError __ test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;10,00;20;fazla\n-2] __ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_satir_hatasi_urun_adet_bi7') csv = 'urun;adet;birim_fiyat;kdv_orani\nA;1;10,00;20;fazla\n', number = 2 @pytest.mark.parametrize( ("csv", "number"), [ ("urun;adet;birim_fiyat\nA;1;10,00\n", 1), (HEADER + "A;1;10,00;20\nB;1;5,00;8\nC;1;7,00;5\n", 3), (HEADER + "A;1;10,00\n", 2), (HEADER + "A;1;;20\n", 2), (HEADER + ";1;10,00;20\n", 2), (HEADER + "A;bir;10,00;20\n", 2), (HEADER + "A;1;fiyat;20\n", 2), (HEADER + "A;1;10,00;20;fazla\n", 2), ], ) def test_satir_hatasi(tmp_path, csv, number): result = run_invoice(tmp_path, csv) > assert result.returncode == 2, result.stdout + result.stderr E AssertionError: /usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed E E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_satir_hatasi_urun_...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_fatura.py:130: AssertionError ______________________________ test_bos_fatura[] _______________________________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bos_fatura__0') csv = '' @pytest.mark.parametrize("csv", ["", HEADER]) def test_bos_fatura(tmp_path, csv): result = run_invoice(tmp_path, csv) > subtotal, vat, total = read_totals(result) ^^^^^^^^^^^^^^^^^^^ tests/test_fatura.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ result = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bos_fatura__0/fatu...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n") def read_totals(result): > assert result.returncode == 0, result.stdout + result.stderr E AssertionError: /usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed E E assert 1 == 0 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bos_fatura__0/fatu...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_fatura.py:47: AssertionError ______________ test_bos_fatura[urun;adet;birim_fiyat;kdv_orani\n] ______________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_bos_fatura_urun_adet_biri0') csv = 'urun;adet;birim_fiyat;kdv_orani\n' @pytest.mark.parametrize("csv", ["", HEADER]) def test_bos_fatura(tmp_path, csv): result = run_invoice(tmp_path, csv) > subtotal, vat, total = read_totals(result) ^^^^^^^^^^^^^^^^^^^ tests/test_fatura.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ result = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bos_fatura_urun_ad...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n") def read_totals(result): > assert result.returncode == 0, result.stdout + result.stderr E AssertionError: /usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed E E assert 1 == 0 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_bos_fatura_urun_ad...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_fatura.py:47: AssertionError __________________________ test_hata_duzeltme_bilgisi __________________________ tmp_path = PosixPath('/tmp/pytest-of-unknown/pytest-0/test_hata_duzeltme_bilgisi0') def test_hata_duzeltme_bilgisi(tmp_path): result = run_invoice(tmp_path, HEADER + "A;1;10,00;8\n") > assert result.returncode == 2, result.stdout + result.stderr E AssertionError: /usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed E E assert 1 == 2 E + where 1 = CompletedProcess(args=['/usr/local/bin/python3', '-m', 'app', '/tmp/pytest-of-unknown/pytest-0/test_hata_duzeltme_bilg...', stderr="/usr/local/bin/python3: No module named app.__main__; 'app' is a package and cannot be directly executed\n").returncode tests/test_fatura.py:159: AssertionError ----------------- generated xml file: /work/creovum-report.xml ----------------- =========================== short test summary info ============================ FAILED tests/test_fatura.py::test_turkce_csv - AssertionError: /usr/local/bin... FAILED tests/test_fatura.py::test_kalem_basina_yuvarlama - AssertionError: /u... FAILED tests/test_fatura.py::test_oranlara_gore_toplamlar - AssertionError: /... FAILED tests/test_fatura.py::test_indirim_kdvden_once - AssertionError: /usr/... FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat\nA;1;10,00\n-1] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;10,00;20\nB;1;5,00;8\nC;1;7,00;5\n-3] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;10,00\n-2] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;;20\n-2] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\n;1;10,00;20\n-2] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;bir;10,00;20\n-2] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;fiyat;20\n-2] FAILED tests/test_fatura.py::test_satir_hatasi[urun;adet;birim_fiyat;kdv_orani\nA;1;10,00;20;fazla\n-2] FAILED tests/test_fatura.py::test_bos_fatura[] - AssertionError: /usr/local/b... FAILED tests/test_fatura.py::test_bos_fatura[urun;adet;birim_fiyat;kdv_orani\n] FAILED tests/test_fatura.py::test_hata_duzeltme_bilgisi - AssertionError: /us... 15 failed in 0.41s