• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smythi93 / Tests4Py / 30040549735

23 Jul 2026 08:04PM UTC coverage: 23.663% (-21.5%) from 45.174%
30040549735

push

github

web-flow
Merge pull request #106 from smythi93/dev

Release 1.0.0 — complete benchmark coverage (328/328 reproducible bugs)

11882 of 64778 new or added lines in 1205 files covered. (18.34%)

46 existing lines in 14 files now uncovered.

18085 of 76426 relevant lines covered (23.66%)

0.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/tests4py/projects/resources/matplotlib/bug_2/unittests.py
NEW
1
import unittest
×
NEW
2
import matplotlib
×
NEW
3
matplotlib.use('Agg')
×
NEW
4
import matplotlib.pyplot as plt
×
NEW
5
from matplotlib.markers import MarkerStyle
×
6

NEW
7
class TestsFailing(unittest.TestCase):
×
8

NEW
9
    def test_diversity_1(self):
×
NEW
10
        grays = [round((i + 1) / (9 + 1), 3) for i in range(9)]
×
NEW
11
        coll = plt.scatter(range(9), range(9), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 9)
×
NEW
12
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
13
        plt.close('all')
×
14

NEW
15
    def test_diversity_2(self):
×
NEW
16
        grays = [round((i + 1) / (14 + 1), 3) for i in range(14)]
×
NEW
17
        coll = plt.scatter(range(14), range(14), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 14)
×
NEW
18
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
19
        plt.close('all')
×
20

NEW
21
    def test_diversity_3(self):
×
NEW
22
        grays = [round((i + 1) / (12 + 1), 3) for i in range(12)]
×
NEW
23
        coll = plt.scatter(range(12), range(12), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 12)
×
NEW
24
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
25
        plt.close('all')
×
26

NEW
27
    def test_diversity_4(self):
×
NEW
28
        grays = [round((i + 1) / (16 + 1), 3) for i in range(16)]
×
NEW
29
        coll = plt.scatter(range(16), range(16), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 16)
×
NEW
30
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
31
        plt.close('all')
×
32

NEW
33
    def test_diversity_5(self):
×
NEW
34
        grays = [round((i + 1) / (6 + 1), 3) for i in range(6)]
×
NEW
35
        coll = plt.scatter(range(6), range(6), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 6)
×
NEW
36
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
37
        plt.close('all')
×
38

NEW
39
    def test_diversity_6(self):
×
NEW
40
        grays = [round((i + 1) / (3 + 1), 3) for i in range(3)]
×
NEW
41
        coll = plt.scatter(range(3), range(3), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 3)
×
NEW
42
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
43
        plt.close('all')
×
44

NEW
45
    def test_diversity_7(self):
×
NEW
46
        grays = [round((i + 1) / (15 + 1), 3) for i in range(15)]
×
NEW
47
        coll = plt.scatter(range(15), range(15), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 15)
×
NEW
48
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
49
        plt.close('all')
×
50

NEW
51
    def test_diversity_8(self):
×
NEW
52
        grays = [round((i + 1) / (10 + 1), 3) for i in range(10)]
×
NEW
53
        coll = plt.scatter(range(10), range(10), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 10)
×
NEW
54
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
55
        plt.close('all')
×
56

NEW
57
    def test_diversity_9(self):
×
NEW
58
        grays = [round((i + 1) / (11 + 1), 3) for i in range(11)]
×
NEW
59
        coll = plt.scatter(range(11), range(11), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 11)
×
NEW
60
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
61
        plt.close('all')
×
62

NEW
63
    def test_diversity_10(self):
×
NEW
64
        grays = [round((i + 1) / (13 + 1), 3) for i in range(13)]
×
NEW
65
        coll = plt.scatter(range(13), range(13), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='none'), linewidths=[1.0] * 13)
×
NEW
66
        self.assertEqual(0, coll.get_facecolors().shape[0])
×
NEW
67
        plt.close('all')
×
68

NEW
69
class TestsPassing(unittest.TestCase):
×
70

NEW
71
    def test_diversity_1(self):
×
NEW
72
        grays = [round((i + 1) / (9 + 1), 3) for i in range(9)]
×
NEW
73
        coll = plt.scatter(range(9), range(9), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 9)
×
NEW
74
        self.assertEqual(9, coll.get_facecolors().shape[0])
×
NEW
75
        plt.close('all')
×
76

NEW
77
    def test_diversity_2(self):
×
NEW
78
        grays = [round((i + 1) / (11 + 1), 3) for i in range(11)]
×
NEW
79
        coll = plt.scatter(range(11), range(11), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 11)
×
NEW
80
        self.assertEqual(11, coll.get_facecolors().shape[0])
×
NEW
81
        plt.close('all')
×
82

NEW
83
    def test_diversity_3(self):
×
NEW
84
        grays = [round((i + 1) / (6 + 1), 3) for i in range(6)]
×
NEW
85
        coll = plt.scatter(range(6), range(6), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 6)
×
NEW
86
        self.assertEqual(6, coll.get_facecolors().shape[0])
×
NEW
87
        plt.close('all')
×
88

NEW
89
    def test_diversity_4(self):
×
NEW
90
        grays = [round((i + 1) / (13 + 1), 3) for i in range(13)]
×
NEW
91
        coll = plt.scatter(range(13), range(13), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 13)
×
NEW
92
        self.assertEqual(13, coll.get_facecolors().shape[0])
×
NEW
93
        plt.close('all')
×
94

NEW
95
    def test_diversity_5(self):
×
NEW
96
        grays = [round((i + 1) / (14 + 1), 3) for i in range(14)]
×
NEW
97
        coll = plt.scatter(range(14), range(14), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 14)
×
NEW
98
        self.assertEqual(14, coll.get_facecolors().shape[0])
×
NEW
99
        plt.close('all')
×
100

NEW
101
    def test_diversity_6(self):
×
NEW
102
        grays = [round((i + 1) / (3 + 1), 3) for i in range(3)]
×
NEW
103
        coll = plt.scatter(range(3), range(3), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 3)
×
NEW
104
        self.assertEqual(3, coll.get_facecolors().shape[0])
×
NEW
105
        plt.close('all')
×
106

NEW
107
    def test_diversity_7(self):
×
NEW
108
        grays = [round((i + 1) / (8 + 1), 3) for i in range(8)]
×
NEW
109
        coll = plt.scatter(range(8), range(8), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 8)
×
NEW
110
        self.assertEqual(8, coll.get_facecolors().shape[0])
×
NEW
111
        plt.close('all')
×
112

NEW
113
    def test_diversity_8(self):
×
NEW
114
        grays = [round((i + 1) / (12 + 1), 3) for i in range(12)]
×
NEW
115
        coll = plt.scatter(range(12), range(12), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 12)
×
NEW
116
        self.assertEqual(12, coll.get_facecolors().shape[0])
×
NEW
117
        plt.close('all')
×
118

NEW
119
    def test_diversity_9(self):
×
NEW
120
        grays = [round((i + 1) / (7 + 1), 3) for i in range(7)]
×
NEW
121
        coll = plt.scatter(range(7), range(7), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 7)
×
NEW
122
        self.assertEqual(7, coll.get_facecolors().shape[0])
×
NEW
123
        plt.close('all')
×
124

NEW
125
    def test_diversity_10(self):
×
NEW
126
        grays = [round((i + 1) / (4 + 1), 3) for i in range(4)]
×
NEW
127
        coll = plt.scatter(range(4), range(4), c=[str(g) for g in grays], marker=MarkerStyle('o', fillstyle='full'), linewidths=[1.0] * 4)
×
NEW
128
        self.assertEqual(4, coll.get_facecolors().shape[0])
×
NEW
129
        plt.close('all')
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc