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 0000000..4e5c32d Binary files /dev/null and b/__pycache__/main.cpython-39.pyc differ 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 0000000..efb4452 Binary files /dev/null and b/__pycache__/test_questionbot.cpython-39-pytest-7.0.1.pyc differ 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 0000000..cc72a2f Binary files /dev/null and b/__pycache__/test_unittest.cpython-39-pytest-7.0.1.pyc differ 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