@@ -14,31 +14,19 @@ def setUp(self):
14
14
def test_incr (self , mock_incr ):
15
15
self .backend .incr ("foo" , instance = "bar" )
16
16
mock_incr .assert_called_once_with (
17
- "sentrytest.foo" ,
18
- 1 ,
19
- sample_rate = 1 ,
20
- tags = ["instance:bar" ],
21
- host = get_hostname (hostname_from_config = True ),
17
+ "sentrytest.foo" , 1 , sample_rate = 1 , tags = ["instance:bar" ], host = get_hostname ()
22
18
)
23
19
24
20
@patch ("datadog.threadstats.base.ThreadStats.timing" )
25
21
def test_timing (self , mock_timing ):
26
22
self .backend .timing ("foo" , 30 , instance = "bar" )
27
23
mock_timing .assert_called_once_with (
28
- "sentrytest.foo" ,
29
- 30 ,
30
- sample_rate = 1 ,
31
- tags = ["instance:bar" ],
32
- host = get_hostname (hostname_from_config = True ),
24
+ "sentrytest.foo" , 30 , sample_rate = 1 , tags = ["instance:bar" ], host = get_hostname ()
33
25
)
34
26
35
27
@patch ("datadog.threadstats.base.ThreadStats.gauge" )
36
28
def test_gauge (self , mock_gauge ):
37
29
self .backend .gauge ("foo" , 5 , instance = "bar" )
38
30
mock_gauge .assert_called_once_with (
39
- "sentrytest.foo" ,
40
- 5 ,
41
- sample_rate = 1 ,
42
- tags = ["instance:bar" ],
43
- host = get_hostname (hostname_from_config = True ),
31
+ "sentrytest.foo" , 5 , sample_rate = 1 , tags = ["instance:bar" ], host = get_hostname ()
44
32
)
0 commit comments