Skip to content

Commit 22a032b

Browse files
committed
Add a README and some diffing to the unit tests
1 parent 14f2938 commit 22a032b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

unit3/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To run the unit tests, simply run
2+
3+
python3 unit.py
4+
5+
The unit tests shoudld be run with a network connection and
6+
on a UNix system (i.e. Linux or Mac OS)

unit3/unit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@
7373
os.system("rm *.sqlite")
7474
os.system("rm cover.jpg")
7575
os.system("rm stuff.jpg")
76+
77+
print("Comparing outputs...")
78+
os.system("diff -r testout testtmp | grep -v '^Only in testtmp: '")

0 commit comments

Comments
 (0)