• 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_15/unittests.py
NEW
1
import unittest
×
NEW
2
import math
×
NEW
3
import warnings
×
NEW
4
import matplotlib
×
NEW
5
matplotlib.use('Agg')
×
NEW
6
import matplotlib.colors as mcolors
×
7

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

NEW
10
    def test_diversity_1(self):
×
NEW
11
        with warnings.catch_warnings():
×
NEW
12
            warnings.simplefilter('ignore')
×
NEW
13
            norm = mcolors.SymLogNorm(1.533, 0.99, vmin=-23.346, vmax=22.381, base=2)
×
NEW
14
            self.assertAlmostEqual(0.9596856052316345, float(norm(16.114)), places=4)
×
15

NEW
16
    def test_diversity_2(self):
×
NEW
17
        with warnings.catch_warnings():
×
NEW
18
            warnings.simplefilter('ignore')
×
NEW
19
            norm = mcolors.SymLogNorm(1.919, 1.451, vmin=-20.317, vmax=18.841, base=2)
×
NEW
20
            self.assertAlmostEqual(0.0628695763959525, float(norm(-11.782)), places=4)
×
21

NEW
22
    def test_diversity_3(self):
×
NEW
23
        with warnings.catch_warnings():
×
NEW
24
            warnings.simplefilter('ignore')
×
NEW
25
            norm = mcolors.SymLogNorm(2.053, 0.667, vmin=-16.378, vmax=12.318, base=math.e)
×
NEW
26
            self.assertAlmostEqual(0.1818740339158352, float(norm(-5.521)), places=4)
×
27

NEW
28
    def test_diversity_4(self):
×
NEW
29
        with warnings.catch_warnings():
×
NEW
30
            warnings.simplefilter('ignore')
×
NEW
31
            norm = mcolors.SymLogNorm(2.391, 1.456, vmin=-19.145, vmax=19.607, base=10)
×
NEW
32
            self.assertAlmostEqual(0.9306623848012232, float(norm(8.751)), places=4)
×
33

NEW
34
    def test_diversity_5(self):
×
NEW
35
        with warnings.catch_warnings():
×
NEW
36
            warnings.simplefilter('ignore')
×
NEW
37
            norm = mcolors.SymLogNorm(0.911, 1.611, vmin=-23.573, vmax=27.57, base=math.e)
×
NEW
38
            self.assertAlmostEqual(0.05253158308510788, float(norm(-12.709)), places=4)
×
39

NEW
40
    def test_diversity_6(self):
×
NEW
41
        with warnings.catch_warnings():
×
NEW
42
            warnings.simplefilter('ignore')
×
NEW
43
            norm = mcolors.SymLogNorm(1.104, 1.161, vmin=-17.645, vmax=17.862, base=10)
×
NEW
44
            self.assertAlmostEqual(0.8249622677772415, float(norm(2.388)), places=4)
×
45

NEW
46
    def test_diversity_7(self):
×
NEW
47
        with warnings.catch_warnings():
×
NEW
48
            warnings.simplefilter('ignore')
×
NEW
49
            norm = mcolors.SymLogNorm(1.711, 1.952, vmin=-7.325, vmax=26.313, base=10)
×
NEW
50
            self.assertAlmostEqual(0.8804251548794019, float(norm(4.831)), places=4)
×
51

NEW
52
    def test_diversity_8(self):
×
NEW
53
        with warnings.catch_warnings():
×
NEW
54
            warnings.simplefilter('ignore')
×
NEW
55
            norm = mcolors.SymLogNorm(2.781, 1.309, vmin=-14.232, vmax=20.917, base=10)
×
NEW
56
            self.assertAlmostEqual(0.01244683127247168, float(norm(-12.512)), places=4)
×
57

NEW
58
    def test_diversity_9(self):
×
NEW
59
        with warnings.catch_warnings():
×
NEW
60
            warnings.simplefilter('ignore')
×
NEW
61
            norm = mcolors.SymLogNorm(2.566, 0.638, vmin=-12.75, vmax=16.262, base=math.e)
×
NEW
62
            self.assertAlmostEqual(0.06461263944330184, float(norm(-8.955)), places=4)
×
63

NEW
64
    def test_diversity_10(self):
×
NEW
65
        with warnings.catch_warnings():
×
NEW
66
            warnings.simplefilter('ignore')
×
NEW
67
            norm = mcolors.SymLogNorm(0.933, 1.565, vmin=-11.379, vmax=9.464, base=2)
×
NEW
68
            self.assertAlmostEqual(0.039243204907193296, float(norm(-7.944)), places=4)
×
69

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

NEW
72
    def test_diversity_1(self):
×
NEW
73
        with warnings.catch_warnings():
×
NEW
74
            warnings.simplefilter('ignore')
×
NEW
75
            norm = mcolors.SymLogNorm(1.965, 0.944, vmin=-23.302, vmax=26.166)
×
NEW
76
            self.assertAlmostEqual(0.08257554786014737, float(norm(-11.988)), places=4)
×
77

NEW
78
    def test_diversity_2(self):
×
NEW
79
        with warnings.catch_warnings():
×
NEW
80
            warnings.simplefilter('ignore')
×
NEW
81
            norm = mcolors.SymLogNorm(1.773, 1.647, vmin=-5.439, vmax=5.279)
×
NEW
82
            self.assertAlmostEqual(0.13667582160201502, float(norm(-1.972)), places=4)
×
83

NEW
84
    def test_diversity_3(self):
×
NEW
85
        with warnings.catch_warnings():
×
NEW
86
            warnings.simplefilter('ignore')
×
NEW
87
            norm = mcolors.SymLogNorm(0.614, 1.033, vmin=-29.078, vmax=17.737)
×
NEW
88
            self.assertAlmostEqual(0.01737999573379746, float(norm(-24.232)), places=4)
×
89

NEW
90
    def test_diversity_4(self):
×
NEW
91
        with warnings.catch_warnings():
×
NEW
92
            warnings.simplefilter('ignore')
×
NEW
93
            norm = mcolors.SymLogNorm(1.382, 1.721, vmin=-21.999, vmax=28.78)
×
NEW
94
            self.assertAlmostEqual(0.8876981009421513, float(norm(8.137)), places=4)
×
95

NEW
96
    def test_diversity_5(self):
×
NEW
97
        with warnings.catch_warnings():
×
NEW
98
            warnings.simplefilter('ignore')
×
NEW
99
            norm = mcolors.SymLogNorm(2.853, 0.863, vmin=-28.101, vmax=28.301)
×
NEW
100
            self.assertAlmostEqual(0.9492580862141553, float(norm(19.528)), places=4)
×
101

NEW
102
    def test_diversity_6(self):
×
NEW
103
        with warnings.catch_warnings():
×
NEW
104
            warnings.simplefilter('ignore')
×
NEW
105
            norm = mcolors.SymLogNorm(2.16, 1.19, vmin=-22.011, vmax=28.257)
×
NEW
106
            self.assertAlmostEqual(0.8797891461183269, float(norm(9.98)), places=4)
×
107

NEW
108
    def test_diversity_7(self):
×
NEW
109
        with warnings.catch_warnings():
×
NEW
110
            warnings.simplefilter('ignore')
×
NEW
111
            norm = mcolors.SymLogNorm(2.321, 0.746, vmin=-9.568, vmax=27.79)
×
NEW
112
            self.assertAlmostEqual(0.7952253768636797, float(norm(7.713)), places=4)
×
113

NEW
114
    def test_diversity_8(self):
×
NEW
115
        with warnings.catch_warnings():
×
NEW
116
            warnings.simplefilter('ignore')
×
NEW
117
            norm = mcolors.SymLogNorm(2.009, 1.256, vmin=-21.497, vmax=7.029)
×
NEW
118
            self.assertAlmostEqual(0.05936274996275755, float(norm(-13.694)), places=4)
×
119

NEW
120
    def test_diversity_9(self):
×
NEW
121
        with warnings.catch_warnings():
×
NEW
122
            warnings.simplefilter('ignore')
×
NEW
123
            norm = mcolors.SymLogNorm(1.346, 1.508, vmin=-13.636, vmax=23.84)
×
NEW
124
            self.assertAlmostEqual(0.8767311904599981, float(norm(6.983)), places=4)
×
125

NEW
126
    def test_diversity_10(self):
×
NEW
127
        with warnings.catch_warnings():
×
NEW
128
            warnings.simplefilter('ignore')
×
NEW
129
            norm = mcolors.SymLogNorm(2.093, 1.812, vmin=-9.696, vmax=5.792)
×
NEW
130
            self.assertAlmostEqual(0.8941522604529958, float(norm(2.41)), places=4)
×
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