Skip to content

Commit 2bf64de

Browse files
committed
Added buffers, retest to 99%.
1 parent 86139e1 commit 2bf64de

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

gitnet/gitnet_tests/coverage_report.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ test_commit_log.py 259 0 100%
88
test_get.py 91 1 99% 48
99
test_helpers.py 201 0 100%
1010
test_log.py 678 0 100%
11-
test_netgen.py 111 0 100%
12-
test_network.py 524 0 100%
11+
test_netgen.py 126 0 100%
12+
test_network.py 524 1 99% 659
1313
C:\Users\User\Desktop\gitnet\gitnet\helpers.py 132 2 98% 55, 385
14-
C:\Users\User\Desktop\gitnet\gitnet\log.py 381 30 92% 199, 247-249, 251, 444, 484, 691, 708, 800-821
15-
C:\Users\User\Desktop\gitnet\gitnet\multigraph.py 201 2 99% 151, 254
14+
C:\Users\User\Desktop\gitnet\gitnet\log.py 383 13 97% 200, 248-250, 252, 445, 485, 692, 709, 820, 822, 826, 828
15+
C:\Users\User\Desktop\gitnet\gitnet\multigraph.py 201 4 98% 148-151, 254
1616
---------------------------------------------------------------------------------
17-
TOTAL 2814 52 98%
17+
TOTAL 2831 38 99%
1818

1919
## 9 lines will not be run with our tests:
2020
- log.py line 188,189,190,192

gitnet/gitnet_tests/test_netgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,11 @@ def test_no_colours(self):
217217
# self.assertIn(not 'colour', nodes)
218218
# self.assertIn(not 'lightcoral', nodes)
219219
# self.assertIn(not 'oldlace', nodes)
220+
# Need a way to assert that certain strings are NOT in the record.
220221

221222
def test_simple_colours(self):
222223
net = self.my_log.generate_network('author', 'files', colours='simple')
223224
nodes = str(net.nodes(data=True))
224-
#print(nodes)
225225
self.assertIn("'id': 'readme.md'" and "'type': 'files'" and "'colour': 'lightcoral'", nodes)
226226
self.assertIn("'id': 'Alice'" and "'type': 'author'" and "'colour': 'oldlace'", nodes)
227227

@@ -235,4 +235,4 @@ def tearDown(self):
235235
sub.call(["rm","-rf",".git"])
236236

237237
if __name__ == '__main__':
238-
unittest.main(buffer=False)
238+
unittest.main(buffer=True)

0 commit comments

Comments
 (0)