From 9e5f3a38fc328cd6491a25013854a1ed9fa89559 Mon Sep 17 00:00:00 2001 From: ashkan0201 Date: Thu, 5 Oct 2023 01:23:47 +0330 Subject: [PATCH] final fixed --- .../__pycache__/__init__.cpython-311.pyc | Bin 166 -> 0 bytes .../__pycache__/ashcount.cpython-311.pyc | Bin 5965 -> 0 bytes test/test_somthing.py | 26 ++++++++++++++++++ ...test_somthing.cpython-311-pytest-7.4.2.pyc | Bin 993 -> 0 bytes tests/test_somthing.py | 26 ------------------ 5 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 src/module/__pycache__/__init__.cpython-311.pyc delete mode 100644 src/module/__pycache__/ashcount.cpython-311.pyc create mode 100644 test/test_somthing.py delete mode 100644 tests/__pycache__/test_somthing.cpython-311-pytest-7.4.2.pyc delete mode 100644 tests/test_somthing.py diff --git a/src/module/__pycache__/__init__.cpython-311.pyc b/src/module/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 96344256475a9a0f58f8f4f27bffbc3e470047b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 166 zcmZ3^%ge<81m<^SQ$h4&5CH>>P{wCAAY(d13PUi1CZpdRj{6OLZGb1D82L>2X#0(Sz0OAKHxc~qF diff --git a/src/module/__pycache__/ashcount.cpython-311.pyc b/src/module/__pycache__/ashcount.cpython-311.pyc deleted file mode 100644 index e1590cc050a71ff0b245133781d9537a2614532e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5965 zcmds5-ER}w6~FUo$8i`ZPWVc)o{;d7g@z4)75q zlLahWwi!?jf6GoN=Q{7cry)Eqr9}|-0RQ8L6u;I z)Uo}$pEGmj&iS45yZ(J!n~%Wp*57)qAGZBBppx zB;+Cd_%SK45eY`*4I`qdTqJ{P@{hhVx@|dn{EF_(L}FKMD8i0D9ggXjE!~XAEd5%< znbEIAqLw}68;?`nx*ncQM6E-*?{$4V5;Nf}ILXpubF-H%idTw8VwSB(VtSaJSDv?F z(zQ4>?S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-f_a3CZu#63Xp_-I-zS6*u5}T9T1ijEm;231(u|IY@()ACZ#ud`K6E&Wf{|1sLD2GHO|g;LFe2I zfl*XPK$Z?FjH9lM36Ac89#^pw(TKxosnlpmkt(jj*hmjR-Nxk3*vGl&LkoD$OLkN! zSL++bQ~mnv#dR~SA^Ex)a0Y(7tcCJgs2J$VwlDe?lr<#4 z(OWm>Z)A@ZG(GRtneRUkDF*KeP?VtPV&PfKFkGKuaK#68zhQha7mo4~iecN8Y=^p1 zB<9d=XwpH1!w4AFC}bdrc*TK#% zuKenqK!MZd7CyU-5>h zgPIKusnhEeBN1OxFVwhV=L?H(AsMV)u&TVz;3=qk_@kjxYq(7{xc#3hZu13$5>whN z_wsmDx4YXY8hA|Vz_rG3L^~070yOIB_5|A?vV>j^F+FuJZqw)(UZw|O>&&za!>>-V zf>dRamF1DHv;uNe0XeFsq_Vt|=KZG1`s(HDcE~r<=jh{v$y!em#A{kkNg(&24}_jK zdG!TfAMT=XcRo8Cfn5{JD9?L?m{8V*e)j&>r9FH0JV8A@DAvRu2tni!Q+F(l(0$n4 zkH9hs5{m0Mo=Q5)FBENnEnfMJhc>_Qh6xwoD)wIinq-*oeMeO%;~yH;#%U-;z8@&YtQlH zL$6d}F+Y~U14Yn77hwCPG*?{r;JwuSxuB+GdpM=i!&`2%lt$HM@7{8zx?!dQ94hOu zGJ}8}e%$Ar>0QdwYtVyGlf9c~{_=87ubazdQe%^S}P!n-4M{7K8gi z__TH3|Bw}b{=uWs$>q_>{HMPtj2bJW2J6kw%>A2?h;T;yCof8bjEZN)r`Y329 zYE|MDwa%=ZNoUfZw6fT zpn(&ElIt-HGd^t?T!%8-8=q(0`wo}6r|3C22Q`@e831gS1)(H*1i3^II*tl`C9)Zw ZV&AjcKvWnOx=Lg-JjK3eO$M03{{`OEF9ZMp diff --git a/test/test_somthing.py b/test/test_somthing.py new file mode 100644 index 0000000..1e8ed45 --- /dev/null +++ b/test/test_somthing.py @@ -0,0 +1,26 @@ +import os +import sys + +path = os.path.join(os.getcwd(), "src") + +sys.path.append(path) + +from module.ashcount import counter , py_counter + +def test_counter1(): + assert counter.line_counter("./Testing_Files/Temp.txt") == 4 + +def test_counter2(): + assert counter.counting_main_lines(path="./Testing_Files/Temp.txt") == 2 + +def test_counter3(): + assert counter.word_count(path="./Testing_Files/Temp.txt") == 11 + +def test_py_counter4(): + assert py_counter.python_line_count(path="./Testing_Files/Temp.py") == 8 + +def test_py_counter4(): + assert py_counter.python_comment_count(path="./Testing_Files/Temp.py") == 2 + +def test_py_counter4(): + assert py_counter.pure_python_code(path="./Testing_Files/Temp.py") == 3 diff --git a/tests/__pycache__/test_somthing.cpython-311-pytest-7.4.2.pyc b/tests/__pycache__/test_somthing.cpython-311-pytest-7.4.2.pyc deleted file mode 100644 index 7299e3c881db50eb8a61c005f45f0156fc671e95..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 993 zcmZ`%&1(}u6rY*hByBZ?es~ZRa#7q%uv*)qMif-Yp}nXeA+W4F6T7-!%uGlVHjtL~ zZ}8%|BE9(M=z=Fty#;d1$v3mfnuYq7dGmhn<2P^K?6+!l1%dqdeVhFv2>nrDE`YU6 z?!xv3QADwiT3GKSFkFIBV75vaQF4k}Ws2V*%eYh}2d*xhsS4}{tO*n-9z0YFCn&+6 z^%+Bw5aCOR&gD~XQ;2miHB@$ooSO(;z{;dhG4B>7=p3pqa)$q8;bImwzmh>2p`k%b zw44|o*2t8q`85LmZ&uv zHDzvF!Xl{wKBcw?tBw$iOC8&>gmUg!rF7+a+?Py9+u`Y&?K-}1a~5+q3Sx(|blDb8 zhbd3G`a%o+?U0U!IOE5mWm!P