Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Feedback #1

Open
wants to merge 24 commits into
base: feedback
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e53a2c4
Setting up GitHub Classroom Feedback
github-classroom[bot] Dec 14, 2022
fadd82b
Add files via upload
kcmtong Dec 15, 2022
75af1ec
Delete DLAdvisor
kcmtong Dec 15, 2022
d853453
copy prev proj repo
kcmtong Dec 15, 2022
9794331
consolidate prev proj repo source
kcmtong Dec 15, 2022
2a2c848
Add TestSuite Structure and Unit Test framework;
kcmtong Dec 15, 2022
5b6d31a
Delete .ipynb_checkpoints directory
kcmtong Dec 15, 2022
9142e04
Merge branch 'main' of https://github.com/ubco-mds-2022-labs/project-…
kcmtong Dec 15, 2022
8fbc4cf
repo housekeeping
kcmtong Dec 15, 2022
afddd05
Fix some UnitTest Module
kcmtong Dec 15, 2022
99764be
Fix some unit test
kcmtong Dec 15, 2022
a90948e
Delete .ipynb_checkpoints directory
kcmtong Dec 15, 2022
7fff72d
Merge pull request #2 from ubco-mds-2022-labs/kt_fix_testsuite
kcmtong Dec 15, 2022
fd55679
Made some changes
nowshabad Dec 20, 2022
b77d2b5
updated setup and teardown class
nowshabad Dec 21, 2022
3b0b9f6
Merge pull request #3 from ubco-mds-2022-labs/nowshaba_test
nowshabad Dec 21, 2022
738a261
Delete __pycache__ directory
kcmtong Dec 21, 2022
66741d8
Delete .ipynb_checkpoints directory
kcmtong Dec 21, 2022
b4de625
Delete DLAdvisor/__pycache__ directory
kcmtong Dec 21, 2022
fea29a1
Delete DLAdvisor/.ipynb_checkpoints directory
kcmtong Dec 21, 2022
038680e
Delete DLAdvisor/Analyzer/.ipynb_checkpoints directory
kcmtong Dec 21, 2022
ab7a4fe
Delete DLAdvisor/Analyzer/__pycache__ directory
kcmtong Dec 21, 2022
0f0ae7b
Delete DLAdvisor/ProfileBuilder/.ipynb_checkpoints directory
kcmtong Dec 21, 2022
fc552cc
Delete DLAdvisor/ProfileBuilder/__pycache__ directory
kcmtong Dec 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix some unit test
kcmtong committed Dec 15, 2022
commit 99764bea8a4c8410e8884ae4c1f375e1479d4b49
16 changes: 8 additions & 8 deletions TestAdvisor.py
Original file line number Diff line number Diff line change
@@ -11,16 +11,16 @@ def setUp(self):
self.oresources2 = Advisor.populateOLResources(2)

def test_populatePrepResources(self):
self.assertIn('Learn stage 1',self.prepresources1.resources[0][0])
self.assertIn('stage1.com',self.prepresources1.resources[0][1])
self.assertIn('Learn stage 2',self.prepresources2.resources[0][0])
self.assertIn('stage2.com',self.prepresources2.resources[0][1])
self.assertIn('Knowledge Test',self.prepresources1.resources[0][0])
self.assertIn('Get-your-L.aspx',self.prepresources1.resources[0][1])
self.assertIn('RoadTest 7',self.prepresources2.resources[0][0])
self.assertIn('Get-your-N.aspx',self.prepresources2.resources[0][1])

def test_populateOLResources(self):
self.assertIn("Test OL",self.oresources1.resources[0][0])
self.assertIn("stage1.com",self.oresources1.resources[0][1])
self.assertIn("RoadTest7 OL",self.oresources2.resources[0][0])
self.assertIn("stage2.com",self.oresources2.resources[0][1])
self.assertIn("Book a ICBC Knowledge",self.oresources1.resources[0][0])
self.assertIn("maticwebbookin",self.oresources1.resources[0][1])
self.assertIn("Book a Road Test 7",self.oresources2.resources[0][0])
self.assertIn("webdeas-ui",self.oresources2.resources[0][1])

def tearDown(self):
del(self.prepresources1)
22 changes: 3 additions & 19 deletions TestSuite.ipynb
Original file line number Diff line number Diff line change
@@ -10,34 +10,18 @@
"name": "stderr",
"output_type": "stream",
"text": [
"......FF\n",
"======================================================================\n",
"FAIL: test_populateOLResources (TestAdvisor.TestAdvisor)\n",
"----------------------------------------------------------------------\n",
"Traceback (most recent call last):\n",
" File \"C:\\Users\\cmton\\Documents\\MDS\\Block3\\533_Collab\\project\\proj-git\\project-step-2-kcmtong\\TestAdvisor.py\", line 20, in test_populateOLResources\n",
" self.assertIn(\"Test OL\",self.oresources1.resources[0][0])\n",
"AssertionError: 'Test OL' not found in 'Book a ICBC Knowledge Test'\n",
"\n",
"======================================================================\n",
"FAIL: test_populatePrepResources (TestAdvisor.TestAdvisor)\n",
"----------------------------------------------------------------------\n",
"Traceback (most recent call last):\n",
" File \"C:\\Users\\cmton\\Documents\\MDS\\Block3\\533_Collab\\project\\proj-git\\project-step-2-kcmtong\\TestAdvisor.py\", line 14, in test_populatePrepResources\n",
" self.assertIn('Learn stage 1',self.prepresources1.resources[0][0])\n",
"AssertionError: 'Learn stage 1' not found in 'Knowledge Test Info'\n",
"\n",
"........\n",
"----------------------------------------------------------------------\n",
"Ran 8 tests in 0.004s\n",
"\n",
"FAILED (failures=2)\n"
"OK\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"<unittest.runner.TextTestResult run=8 errors=0 failures=2>\n"
"<unittest.runner.TextTestResult run=8 errors=0 failures=0>\n"
]
}
],