Skip to content
Snippets Groups Projects
Commit 3500606a authored by tuhe's avatar tuhe
Browse files

Work on presentation

parent 36f5bf70
No related branches found
No related tags found
No related merge requests found
Showing
with 71 additions and 667 deletions
......@@ -274,30 +274,74 @@ When this is run, the titles are shown as follows:
| | | |_ __ _| |_| | \/_ __ __ _ __| | ___
| | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \
| |_| | | | | | |_| |_\ \ | | (_| | (_| | __/
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.22, started: 15/06/2022 09:18:15
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.27, started: 16/09/2022 14:30:15
CS 102 Report 2
Question 1: Week1
* q1.1) test_add...................................................................................................PASS
* q1.2) test_reverse...............................................................................................PASS
* q1.1) test_add.................................................................................................FAILED
* q1.2) test_reverse.............................................................................................FAILED
* q1.3) test_output_capture........................................................................................PASS
* q1) Total.................................................................................................... 10/10
======================================================================
FAIL: test_add (__main__.Week1)
test_add
----------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 882, in _callTestMethod
File "<string>", line 1699, in test_add
File "<string>", line 987, in assertEqualC
File "<string>", line 975, in wrap_assert
AssertionError: 4 != 'Key 0 not found in cache; framework files missing. Please run deploy()'
======================================================================
FAIL: test_reverse (__main__.Week1)
test_reverse
----------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 882, in _callTestMethod
File "<string>", line 1703, in test_reverse
File "<string>", line 987, in assertEqualC
File "<string>", line 975, in wrap_assert
AssertionError: [3, 2, 1] != 'Key 0 not found in cache; framework files missing. Please run deploy()'
* q1) Total..................................................................................................... 3/10
Question 2: The same problem as before with nicer titles
* q2.1) Test the addition method add(a,b)..........................................................................PASS
* q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
* q2) Total...................................................................................................... 6/6
Total points at 09:18:16 (0 minutes, 0 seconds)....................................................................16/16
* q2.1) Test the addition method add(a,b)........................................................................FAILED
* q2.2) test_reverse.............................................................................................FAILED
======================================================================
FAIL: test_add (__main__.Week1Titles)
Test the addition method add(a,b)
----------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 882, in _callTestMethod
File "<string>", line 1715, in test_add
File "<string>", line 987, in assertEqualC
File "<string>", line 975, in wrap_assert
AssertionError: 4 != 'Key 0 not found in cache; framework files missing. Please run deploy()'
======================================================================
FAIL: test_reverse (__main__.Week1Titles)
test_reverse
----------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 882, in _callTestMethod
File "<string>", line 1723, in test_reverse
File "<string>", line 987, in assertEqualC
File "<string>", line 975, in wrap_assert
AssertionError: [3, 2, 1] != 'Key 0 not found in cache; framework files missing. Please run deploy()'
* q2) Total...................................................................................................... 0/6
Total points at 14:30:15 (0 minutes, 0 seconds).....................................................................3/16
Including files in upload...
path.: _NamespacePath(['C:\\Users\\tuhe\\Documents\\unitgrade_private\\examples\\example_framework\\instructor\\cs102', 'C:\\Users\\tuhe\\Documents\\unitgrade_private\\examples\\example_framework\\instructor\\cs102'])
path.: _NamespacePath(['/home/tuhe/Documents/unitgrade_private/examples/example_framework/instructor/cs102', '/home/tuhe/Documents/unitgrade_private/examples/example_framework/instructor/cs102'])
* cs102
> Testing token file integrity...
Done!
To get credit for your results, please upload the single unmodified file:
> C:\Users\tuhe\Documents\unitgrade_private\examples\example_framework\instructor\cs102\Report2_handin_16_of_16.token
> /home/tuhe/Documents/unitgrade_private/examples/example_framework/instructor/cs102/Report2_handin_3_of_16.token
```
What happens behind the scenes when we set `self.title` is that the result is pre-computed on the instructors machine and cached. This means the last test will display the correct result regardless of how `reverse_list` has been implemented by the student. The titles are also shown correctly when the method is run as a unittest.
......
This diff is collapsed.
This diff is collapsed.
File deleted
No preview for this file type
This diff is collapsed.
No preview for this file type
No preview for this file type
import numpy as np
a = 245
def reverse_list(mylist):
"""
Given a list 'mylist' returns a list consisting of the same elements in reverse order. E.g.
......
This diff is collapsed.
......@@ -42,6 +42,9 @@ class Numpy(UTestCase):
# def make_primes(self, n):
# return primes(n)
# def setUp(self) -> None:
# print("We are doing the setup thing.")
def test_bad(self):
"""
Hints:
......@@ -106,7 +109,6 @@ class Report2(Report):
if __name__ == "__main__":
# import texttestrunner
import unittest
unittest.main()
# evaluate_report_student(Report2())
# import unittest
# unittest.main()
evaluate_report_student(Report2())
No preview for this file type
No preview for this file type
File added
{"encoding_scheme": " from unitgrade_private.hidden_gather_upload import dict2picklestring, picklestring2dict;", "questions": "/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4AQcAjVdAEABDm5i8vf61cV4iM6ul0/3ELnVhbfZugbR5l8KiW5BMDZ6L8RzKzXjQq+BhcgH2MCJ1m9+eUsGtZHT9kvtqsxPVkTSO3NwafxFXIS31YBI97jN5gntTcpCbg9t7AU0q//uau3ShvdPaadcLZuF/lN1xnW+JdPnvUDda+75aqeRNDn+kY3o89kwQiwQhudeIbf1KsgHaP3ro1KTBEyGIx+RfVFRmLUamFJv+PaDrgWnfH2G15B/Nw97c00KtNTs8nnKN9mzCxdAcg/ipvo1F9Iq6RqoOykxE//nfhuWxpJFQaIvYGmBXBzVSuJKP9HL5/4OuCCZJxyDdDrb+1Ec0nfy8m+hZpw/HNNA9vdgHpEHsYrqqGaOzF49QL+ZOsYdqe46XdqwI0KykT/fsfKyiaF1y8SoMkrom6BX5hE1iK8VDQgB8wzazLGdon9I90kBgi8J4pLlUgKHOG38Ch8RyvZWdpc/B5KMisnFMlRShbamdtZOpBNTVc9zzOTq7XsQqitkOQxL2ZBO/lUcN5LZne6uxCzM5wxtqDUnQVZONK0QzpXWmJUIdmxmDdX8gXlVM6uxSVd1fx0X0usMqy/syHGMltcQcywlRoYx5WZXtuZiwHbWvt05Jy++cClwYPgC01nUeWpLsULl8s0L0nE7M06h4hzhnZ7duF/cI3rUyWNCu8l3G+SkmMtimYrN9dZ3Nqpshvni0LreBYTO7M/BXNi6jBpHAMxLJGyEA/O1f0LAIuqSmoYAAAAASHWmfOv1ibsAAdEEnQgAAFbVjq6xxGf7AgAAAAAEWVo=", "root_dir": "/home/tuhe/Documents/unitgrade_private/devel/example_devel/instructor", "relative_path": "cs108/report_devel.py", "modules": ["cs108", "report_devel"], "token_stub": "cs108/Report2_handin"}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment