• 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_8/unittests.py
NEW
1
import unittest
×
NEW
2
import matplotlib
×
NEW
3
matplotlib.use('Agg')
×
NEW
4
import numpy as np
×
NEW
5
import matplotlib.pyplot as plt
×
6

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

NEW
9
    def test_diversity_1(self):
×
NEW
10
        fig, ax = plt.subplots()
×
NEW
11
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
12
        ax.set_ylim((-0.842, 0.581), auto=True)
×
NEW
13
        fig.canvas.draw()
×
NEW
14
        self.assertEqual([-0.842, 0.581], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
15
        plt.close(fig)
×
16

NEW
17
    def test_diversity_2(self):
×
NEW
18
        fig, ax = plt.subplots()
×
NEW
19
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
20
        ax.set_xlim((-1.3, 0.338), auto=True)
×
NEW
21
        fig.canvas.draw()
×
NEW
22
        self.assertEqual([-1.3, 0.338], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
23
        plt.close(fig)
×
24

NEW
25
    def test_diversity_3(self):
×
NEW
26
        fig, ax = plt.subplots()
×
NEW
27
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
28
        ax.set_ylim((-1.349, 0.649), auto=None)
×
NEW
29
        fig.canvas.draw()
×
NEW
30
        self.assertEqual([-1.349, 0.649], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
31
        plt.close(fig)
×
32

NEW
33
    def test_diversity_4(self):
×
NEW
34
        fig, ax = plt.subplots()
×
NEW
35
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
36
        ax.set_ylim((-0.753, 1.546), auto=True)
×
NEW
37
        fig.canvas.draw()
×
NEW
38
        self.assertEqual([-0.753, 1.546], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
39
        plt.close(fig)
×
40

NEW
41
    def test_diversity_5(self):
×
NEW
42
        fig, ax = plt.subplots()
×
NEW
43
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
44
        ax.set_ylim((-0.803, 1.976), auto=None)
×
NEW
45
        fig.canvas.draw()
×
NEW
46
        self.assertEqual([-0.803, 1.976], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
47
        plt.close(fig)
×
48

NEW
49
    def test_diversity_6(self):
×
NEW
50
        fig, ax = plt.subplots()
×
NEW
51
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
52
        ax.set_xlim((-0.757, 0.711), auto=True)
×
NEW
53
        fig.canvas.draw()
×
NEW
54
        self.assertEqual([-0.757, 0.711], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
55
        plt.close(fig)
×
56

NEW
57
    def test_diversity_7(self):
×
NEW
58
        fig, ax = plt.subplots()
×
NEW
59
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
60
        ax.set_xlim((-0.616, 0.98), auto=None)
×
NEW
61
        fig.canvas.draw()
×
NEW
62
        self.assertEqual([-0.616, 0.98], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
63
        plt.close(fig)
×
64

NEW
65
    def test_diversity_8(self):
×
NEW
66
        fig, ax = plt.subplots()
×
NEW
67
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
68
        ax.set_ylim((-0.948, 0.584), auto=True)
×
NEW
69
        fig.canvas.draw()
×
NEW
70
        self.assertEqual([-0.948, 0.584], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
71
        plt.close(fig)
×
72

NEW
73
    def test_diversity_9(self):
×
NEW
74
        fig, ax = plt.subplots()
×
NEW
75
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
76
        ax.set_ylim((-1.658, 0.701), auto=None)
×
NEW
77
        fig.canvas.draw()
×
NEW
78
        self.assertEqual([-1.658, 0.701], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
79
        plt.close(fig)
×
80

NEW
81
    def test_diversity_10(self):
×
NEW
82
        fig, ax = plt.subplots()
×
NEW
83
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
84
        ax.set_ylim((-0.52, 0.66), auto=True)
×
NEW
85
        fig.canvas.draw()
×
NEW
86
        self.assertEqual([-0.52, 0.66], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
87
        plt.close(fig)
×
88

NEW
89
class TestsPassing(unittest.TestCase):
×
90

NEW
91
    def test_diversity_1(self):
×
NEW
92
        fig, ax = plt.subplots()
×
NEW
93
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
94
        ax.set_xlim((-1.113, 1.474), auto=False)
×
NEW
95
        fig.canvas.draw()
×
NEW
96
        self.assertEqual([-1.113, 1.474], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
97
        plt.close(fig)
×
98

NEW
99
    def test_diversity_2(self):
×
NEW
100
        fig, ax = plt.subplots()
×
NEW
101
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
102
        ax.set_xlim((-0.771, 1.313), auto=False)
×
NEW
103
        fig.canvas.draw()
×
NEW
104
        self.assertEqual([-0.771, 1.313], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
105
        plt.close(fig)
×
106

NEW
107
    def test_diversity_3(self):
×
NEW
108
        fig, ax = plt.subplots()
×
NEW
109
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
110
        ax.set_ylim((-0.403, 1.672), auto=False)
×
NEW
111
        fig.canvas.draw()
×
NEW
112
        self.assertEqual([-0.403, 1.672], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
113
        plt.close(fig)
×
114

NEW
115
    def test_diversity_4(self):
×
NEW
116
        fig, ax = plt.subplots()
×
NEW
117
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
118
        ax.set_ylim((-1.91, 1.067), auto=False)
×
NEW
119
        fig.canvas.draw()
×
NEW
120
        self.assertEqual([-1.91, 1.067], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
121
        plt.close(fig)
×
122

NEW
123
    def test_diversity_5(self):
×
NEW
124
        fig, ax = plt.subplots()
×
NEW
125
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
126
        ax.set_xlim((-1.512, 0.495), auto=False)
×
NEW
127
        fig.canvas.draw()
×
NEW
128
        self.assertEqual([-1.512, 0.495], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
129
        plt.close(fig)
×
130

NEW
131
    def test_diversity_6(self):
×
NEW
132
        fig, ax = plt.subplots()
×
NEW
133
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
134
        ax.set_ylim((-1.692, 0.767), auto=False)
×
NEW
135
        fig.canvas.draw()
×
NEW
136
        self.assertEqual([-1.692, 0.767], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
137
        plt.close(fig)
×
138

NEW
139
    def test_diversity_7(self):
×
NEW
140
        fig, ax = plt.subplots()
×
NEW
141
        ax.scatter(np.arange(100), np.linspace(-0.1, 0.1, 100))
×
NEW
142
        ax.set_ylim((-0.966, 1.312), auto=False)
×
NEW
143
        fig.canvas.draw()
×
NEW
144
        self.assertEqual([-0.966, 1.312], [round(float(v), 3) for v in ax.get_ylim()])
×
NEW
145
        plt.close(fig)
×
146

NEW
147
    def test_diversity_8(self):
×
NEW
148
        fig, ax = plt.subplots()
×
NEW
149
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
150
        ax.set_xlim((-1.58, 1.637), auto=False)
×
NEW
151
        fig.canvas.draw()
×
NEW
152
        self.assertEqual([-1.58, 1.637], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
153
        plt.close(fig)
×
154

NEW
155
    def test_diversity_9(self):
×
NEW
156
        fig, ax = plt.subplots()
×
NEW
157
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
158
        ax.set_xlim((-1.923, 0.996), auto=False)
×
NEW
159
        fig.canvas.draw()
×
NEW
160
        self.assertEqual([-1.923, 0.996], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
161
        plt.close(fig)
×
162

NEW
163
    def test_diversity_10(self):
×
NEW
164
        fig, ax = plt.subplots()
×
NEW
165
        ax.scatter(np.linspace(-0.1, 0.1, 100), np.arange(100))
×
NEW
166
        ax.set_xlim((-0.952, 1.723), auto=False)
×
NEW
167
        fig.canvas.draw()
×
NEW
168
        self.assertEqual([-0.952, 1.723], [round(float(v), 3) for v in ax.get_xlim()])
×
NEW
169
        plt.close(fig)
×
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