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

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

NEW
8
    def test_diversity_1(self):
×
NEW
9
        fig = plt.figure()
×
NEW
10
        ax0 = plt.subplot(211)
×
NEW
11
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
12
        ax0.plot([-3.87, 13.32], [-3.87, 13.32])
×
NEW
13
        ax0.yaxis.set_inverted(True)
×
NEW
14
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
15
        plt.close(fig)
×
16

NEW
17
    def test_diversity_2(self):
×
NEW
18
        fig = plt.figure()
×
NEW
19
        ax0 = plt.subplot(211)
×
NEW
20
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
21
        ax0.plot([-7.59, 1.0], [-7.59, 1.0])
×
NEW
22
        ax0.xaxis.set_inverted(True)
×
NEW
23
        self.assertEqual(True, ax1.xaxis_inverted())
×
NEW
24
        plt.close(fig)
×
25

NEW
26
    def test_diversity_3(self):
×
NEW
27
        fig = plt.figure()
×
NEW
28
        ax0 = plt.subplot(211)
×
NEW
29
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
30
        ax0.plot([-10.4, -4.13], [-10.4, -4.13])
×
NEW
31
        ax0.xaxis.set_inverted(True)
×
NEW
32
        self.assertEqual(True, ax1.xaxis_inverted())
×
NEW
33
        plt.close(fig)
×
34

NEW
35
    def test_diversity_4(self):
×
NEW
36
        fig = plt.figure()
×
NEW
37
        ax0 = plt.subplot(211)
×
NEW
38
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
39
        ax0.plot([-0.27, 17.4], [-0.27, 17.4])
×
NEW
40
        ax0.xaxis.set_inverted(True)
×
NEW
41
        self.assertEqual(True, ax1.xaxis_inverted())
×
NEW
42
        plt.close(fig)
×
43

NEW
44
    def test_diversity_5(self):
×
NEW
45
        fig = plt.figure()
×
NEW
46
        ax0 = plt.subplot(211)
×
NEW
47
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
48
        ax0.plot([-6.6, -1.68], [-6.6, -1.68])
×
NEW
49
        ax0.yaxis.set_inverted(True)
×
NEW
50
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
51
        plt.close(fig)
×
52

NEW
53
    def test_diversity_6(self):
×
NEW
54
        fig = plt.figure()
×
NEW
55
        ax0 = plt.subplot(211)
×
NEW
56
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
57
        ax0.plot([9.08, 18.14], [9.08, 18.14])
×
NEW
58
        ax0.yaxis.set_inverted(True)
×
NEW
59
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
60
        plt.close(fig)
×
61

NEW
62
    def test_diversity_7(self):
×
NEW
63
        fig = plt.figure()
×
NEW
64
        ax0 = plt.subplot(211)
×
NEW
65
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
66
        ax0.plot([6.54, 12.54], [6.54, 12.54])
×
NEW
67
        ax0.yaxis.set_inverted(True)
×
NEW
68
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
69
        plt.close(fig)
×
70

NEW
71
    def test_diversity_8(self):
×
NEW
72
        fig = plt.figure()
×
NEW
73
        ax0 = plt.subplot(211)
×
NEW
74
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
75
        ax0.plot([-17.1, -11.86], [-17.1, -11.86])
×
NEW
76
        ax0.yaxis.set_inverted(True)
×
NEW
77
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
78
        plt.close(fig)
×
79

NEW
80
    def test_diversity_9(self):
×
NEW
81
        fig = plt.figure()
×
NEW
82
        ax0 = plt.subplot(211)
×
NEW
83
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
84
        ax0.plot([3.7, 13.26], [3.7, 13.26])
×
NEW
85
        ax0.yaxis.set_inverted(True)
×
NEW
86
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
87
        plt.close(fig)
×
88

NEW
89
    def test_diversity_10(self):
×
NEW
90
        fig = plt.figure()
×
NEW
91
        ax0 = plt.subplot(211)
×
NEW
92
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
93
        ax0.plot([-2.0, 4.64], [-2.0, 4.64])
×
NEW
94
        ax0.yaxis.set_inverted(True)
×
NEW
95
        self.assertEqual(True, ax1.yaxis_inverted())
×
NEW
96
        plt.close(fig)
×
97

NEW
98
class TestsPassing(unittest.TestCase):
×
99

NEW
100
    def test_diversity_1(self):
×
NEW
101
        fig = plt.figure()
×
NEW
102
        ax0 = plt.subplot(211)
×
NEW
103
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
104
        ax0.plot([-11.87, 4.82], [-11.87, 4.82])
×
NEW
105
        ax0.yaxis.set_inverted(False)
×
NEW
106
        self.assertEqual(False, ax1.yaxis_inverted())
×
NEW
107
        plt.close(fig)
×
108

NEW
109
    def test_diversity_2(self):
×
NEW
110
        fig = plt.figure()
×
NEW
111
        ax0 = plt.subplot(211)
×
NEW
112
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
113
        ax0.plot([6.8, 12.28], [6.8, 12.28])
×
NEW
114
        ax0.xaxis.set_inverted(False)
×
NEW
115
        self.assertEqual(False, ax1.xaxis_inverted())
×
NEW
116
        plt.close(fig)
×
117

NEW
118
    def test_diversity_3(self):
×
NEW
119
        fig = plt.figure()
×
NEW
120
        ax0 = plt.subplot(211)
×
NEW
121
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
122
        ax0.plot([9.87, 23.37], [9.87, 23.37])
×
NEW
123
        ax0.xaxis.set_inverted(False)
×
NEW
124
        self.assertEqual(False, ax1.xaxis_inverted())
×
NEW
125
        plt.close(fig)
×
126

NEW
127
    def test_diversity_4(self):
×
NEW
128
        fig = plt.figure()
×
NEW
129
        ax0 = plt.subplot(211)
×
NEW
130
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
131
        ax0.plot([-14.76, -7.6], [-14.76, -7.6])
×
NEW
132
        ax0.xaxis.set_inverted(False)
×
NEW
133
        self.assertEqual(False, ax1.xaxis_inverted())
×
NEW
134
        plt.close(fig)
×
135

NEW
136
    def test_diversity_5(self):
×
NEW
137
        fig = plt.figure()
×
NEW
138
        ax0 = plt.subplot(211)
×
NEW
139
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
140
        ax0.plot([3.9, 13.17], [3.9, 13.17])
×
NEW
141
        ax0.xaxis.set_inverted(False)
×
NEW
142
        self.assertEqual(False, ax1.xaxis_inverted())
×
NEW
143
        plt.close(fig)
×
144

NEW
145
    def test_diversity_6(self):
×
NEW
146
        fig = plt.figure()
×
NEW
147
        ax0 = plt.subplot(211)
×
NEW
148
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
149
        ax0.plot([-1.93, 3.1], [-1.93, 3.1])
×
NEW
150
        ax0.yaxis.set_inverted(False)
×
NEW
151
        self.assertEqual(False, ax1.yaxis_inverted())
×
NEW
152
        plt.close(fig)
×
153

NEW
154
    def test_diversity_7(self):
×
NEW
155
        fig = plt.figure()
×
NEW
156
        ax0 = plt.subplot(211)
×
NEW
157
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
158
        ax0.plot([-2.96, -1.18], [-2.96, -1.18])
×
NEW
159
        ax0.yaxis.set_inverted(False)
×
NEW
160
        self.assertEqual(False, ax1.yaxis_inverted())
×
NEW
161
        plt.close(fig)
×
162

NEW
163
    def test_diversity_8(self):
×
NEW
164
        fig = plt.figure()
×
NEW
165
        ax0 = plt.subplot(211)
×
NEW
166
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
167
        ax0.plot([-1.62, 6.02], [-1.62, 6.02])
×
NEW
168
        ax0.xaxis.set_inverted(False)
×
NEW
169
        self.assertEqual(False, ax1.xaxis_inverted())
×
NEW
170
        plt.close(fig)
×
171

NEW
172
    def test_diversity_9(self):
×
NEW
173
        fig = plt.figure()
×
NEW
174
        ax0 = plt.subplot(211)
×
NEW
175
        ax1 = plt.subplot(212, sharex=ax0)
×
NEW
176
        ax0.plot([6.37, 8.87], [6.37, 8.87])
×
NEW
177
        ax0.xaxis.set_inverted(False)
×
NEW
178
        self.assertEqual(False, ax1.xaxis_inverted())
×
NEW
179
        plt.close(fig)
×
180

NEW
181
    def test_diversity_10(self):
×
NEW
182
        fig = plt.figure()
×
NEW
183
        ax0 = plt.subplot(211)
×
NEW
184
        ax1 = plt.subplot(212, sharey=ax0)
×
NEW
185
        ax0.plot([-13.72, -9.61], [-13.72, -9.61])
×
NEW
186
        ax0.yaxis.set_inverted(False)
×
NEW
187
        self.assertEqual(False, ax1.yaxis_inverted())
×
NEW
188
        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