@@ -22,14 +22,14 @@ class TestDbMetrics(BaseDbMetricTest):
22
22
threshold, or check by how much it increased during the test.
23
23
"""
24
24
25
- def testConfigHasExpectedDatabases (self ):
25
+ def test_config_has_expected_databases (self ):
26
26
"""Not a real unit test: ensures that testapp.settings contains the
27
27
databases this test expects."""
28
28
assert "default" in connections .databases .keys ()
29
29
assert "test_db_1" in connections .databases .keys ()
30
30
assert "test_db_2" in connections .databases .keys ()
31
31
32
- def testCounters (self ):
32
+ def test_counters (self ):
33
33
cursor_db1 = connections ["test_db_1" ].cursor ()
34
34
cursor_db2 = connections ["test_db_2" ].cursor ()
35
35
cursor_db1 .execute ("SELECT 1" )
@@ -51,7 +51,7 @@ def testCounters(self):
51
51
assert self .getMetric ("django_db_execute_total" , alias = "test_db_1" , vendor = "sqlite" ) > 0
52
52
assert self .getMetric ("django_db_execute_total" , alias = "test_db_2" , vendor = "sqlite" ) >= 200
53
53
54
- def testHistograms (self ):
54
+ def test_histograms (self ):
55
55
cursor_db1 = connections ["test_db_1" ].cursor ()
56
56
cursor_db2 = connections ["test_db_2" ].cursor ()
57
57
cursor_db1 .execute ("SELECT 1" )
@@ -74,7 +74,7 @@ def testHistograms(self):
74
74
>= 200
75
75
)
76
76
77
- def testExecuteMany (self ):
77
+ def test_execute_many (self ):
78
78
registry = self .saveRegistry ()
79
79
cursor_db1 = connections ["test_db_1" ].cursor ()
80
80
cursor_db1 .executemany (
@@ -101,7 +101,7 @@ class TestPostgresDbMetrics(BaseDbMetricTest):
101
101
threshold, or check by how much it increased during the test.
102
102
"""
103
103
104
- def testCounters (self ):
104
+ def test_counters (self ):
105
105
registry = self .saveRegistry ()
106
106
cursor = connections ["postgresql" ].cursor ()
107
107
@@ -128,7 +128,7 @@ class TestMysDbMetrics(BaseDbMetricTest):
128
128
threshold, or check by how much it increased during the test.
129
129
"""
130
130
131
- def testCounters (self ):
131
+ def test_counters (self ):
132
132
registry = self .saveRegistry ()
133
133
cursor = connections ["mysql" ].cursor ()
134
134
@@ -155,7 +155,7 @@ class TestPostgisDbMetrics(BaseDbMetricTest):
155
155
threshold, or check by how much it increased during the test.
156
156
"""
157
157
158
- def testCounters (self ):
158
+ def test_counters (self ):
159
159
r = self .saveRegistry ()
160
160
cursor = connections ["postgis" ].cursor ()
161
161
0 commit comments