From c45f7968ceb157e477f51ca987d59f35f97e011c Mon Sep 17 00:00:00 2001 From: David Lawler Date: Tue, 8 Mar 2022 14:45:17 +1000 Subject: [PATCH] testing --- .vscode/settings.json | 7 ++++++- __pycache__/main.cpython-39.pyc | Bin 0 -> 1462 bytes .../test_questionbot.cpython-39-pytest-7.0.1.pyc | Bin 0 -> 747 bytes .../test_unittest.cpython-39-pytest-7.0.1.pyc | Bin 0 -> 776 bytes asked_questions_log.txt | 4 +++- test_questionbot.py | 7 +++++++ 6 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 __pycache__/main.cpython-39.pyc create mode 100644 __pycache__/test_questionbot.cpython-39-pytest-7.0.1.pyc create mode 100644 __pycache__/test_unittest.cpython-39-pytest-7.0.1.pyc create mode 100644 test_questionbot.py diff --git a/.vscode/settings.json b/.vscode/settings.json index e555942..706a56d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,10 @@ { "python.linting.pylintEnabled": false, "python.linting.enabled": true, - "python.linting.mypyEnabled": true + "python.linting.mypyEnabled": true, + "python.testing.pytestArgs": [ + "." + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true } \ No newline at end of file diff --git a/__pycache__/main.cpython-39.pyc b/__pycache__/main.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4e5c32d29d8462586e597512ac09347c529a5445 GIT binary patch literal 1462 zcmZ8h&2QT_6elH0R%|CJf}u&a3p*6eytTID7WpWKVQbTE##(o6_JJ7~G{$6H#j<3R z^b#8~Fu*$w*nOw?xPOV49d_Ek(9<4e8w*C^@jX3K?@_n zzT6xRynG6x9>c^D$1!RzG;U+=aQ9c#b~xc4XqWrE0GbGo2R%m~2r@$$zBxsewSVAy z)auxHt3kl?Pl&A-gBEQ?Dt?FM8&O&XIv$;@y_Fv zY2(HsG36-HLMqYGQJNTUlz^%bQywWHUyX#y-R0rZdcu;PanwFY<4+_@aE`Z^weQk+ z)EBDuMVfYFaU!Fi#e@BN{rK?U(f-53#zCWgba-4pt{>H2jA_1H`?l4rHCvyb(nkH! z5q&^U$4ZMnJrOGECX^+dz7{Nw6tnqjpD87j>Wf6v#*tJ=TeP50MbO9uX@h334Xo@w!&YhVvwE*Hd0x*|APDw^i(2qM) zFT>YFdl||+?(U+QGshSW?}FFY1xvsjPyLK!{w|spAWAR?GP44}PFj=ToDHiN3h>3! z1S>2nYlfr)pnyohxFPul518S~_-p_xJU_qjqJ)bpOhQregGMkA|ejN*@1O=3Zys`CuUd00mg-i7tL7%n0dG?z2#P~5SPIj8$ zi;^D9Ow(~XqD=J!r+ab}0D6n}CU^4BJ89C1M_erS*)WR(&`41zlKe0ecduHUZ07;O z)j?Glr`@W)(i4Y$WN>j3Ky&i5vA9zy7;gZ70M|g23`U@omeC;RP2Pg+#=C@85{8JY zNLSoNrEM&zf3>^^+9g|P%R>5ptq|Lw??NPX8z$R{#3@6m1o#8cMf@Rw&V1iy3c}Ft z4a15rx2(e-j5XXjdEGBgwAz=jz6iq`sqEb&^V$qP?x%bdi%)E$E9-*ZcLOiD6>J6g EUqOC$F#rGn literal 0 HcmV?d00001 diff --git a/__pycache__/test_questionbot.cpython-39-pytest-7.0.1.pyc b/__pycache__/test_questionbot.cpython-39-pytest-7.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..efb445286a895b0ebc2c3a1e6a2f17381ada5eb0 GIT binary patch literal 747 zcmZWnPixyS6qo-bcG7f|9R|DUvOxxo-K;bTjMBAbBZnEbunl}MN+epfmYhlQf(JWo z*M5+Gr1`qjzQWjHPfk+;73lqw-h03IlgRFF7s2v>J)i#r{o6X*%LV5Iwmt?y5p{Bu zI*oRP=OPCQKW#bo#Le3xNCOe3A^0Bkf1Uxsp=h3Xp`mqn&s8PUfe7P3?KFxY`q7<01WC<@5cQOjiIoge0#FGBt~O%$?%F1 zPzu{pX=_$WSwYKQshN6TGHrMv)83am>y*grzN74zw@&RYid&=taQ^;?J{5T>n2z2S z#YN7}75~ci58`+-IyyXfIT{`f#W!r7xYmhb|!&jo9WzLT6&(U_I7jEeN2YXh&mH+?% literal 0 HcmV?d00001 diff --git a/__pycache__/test_unittest.cpython-39-pytest-7.0.1.pyc b/__pycache__/test_unittest.cpython-39-pytest-7.0.1.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cc72a2fe1ea3f51cb6e52c50e0db5ad7fed5dcb5 GIT binary patch literal 776 zcmZ`%PjAyO6t|N!^}6kXkPs4woF?_KCM(t2N(dD;m?l9F6gcE!d9|5bIZ3e-P!I)vR@BD#@Xx_*6 z-ij@kOmk{vAr;fIZkMjMEdc~GP;(!Q@EG!dV;A z@ky3V$ETx{$K&DYFq@30*)*G^uiM0z(|7aB^m6`kkqooZBsoqNt*J$koC_nb%Y>CY zc_WyThSjnv(`RtIF@-4WWcWPw8#Se@oikXs_Q8%FW4DfD3gIs!-?O7}up>VQ773*# zD+HysM`=;pVj?Bo8vC0C79wJeQ2n5|oS7d@ow z)wecov$y*q8#^B)`j4fymk#_hj Sd9vB)se66nQb(9z68r;qq|NUD literal 0 HcmV?d00001 diff --git a/asked_questions_log.txt b/asked_questions_log.txt index b5f39c6..15ed199 100644 --- a/asked_questions_log.txt +++ b/asked_questions_log.txt @@ -2,4 +2,6 @@ today today weather -test \ No newline at end of file +test +/usr/local/bin/python3 "/Volumes/GoogleDrive-100976413726208790908/My Drive/UNI/INFS 2048 - System Design and Realisation/Assessment 2B/main.py" +weather \ No newline at end of file diff --git a/test_questionbot.py b/test_questionbot.py new file mode 100644 index 0000000..c1d6f39 --- /dev/null +++ b/test_questionbot.py @@ -0,0 +1,7 @@ +from main import jaccard_similarity, most_likely + +def test_CanInstantiatejaccard_similarity(): + co = jaccard_similarity(userQuestion="whats the weather like",questionBank="Sunny") + +def test_most_likely(): + co = most_likely(userQuestion="Weather") \ No newline at end of file