File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- import warnings
3
1
from contextlib import contextmanager
4
2
from typing import Generator , List
5
3
17
15
from datadog_api_client import Configuration as DDCfg
18
16
from logzero import logger
19
17
20
- warnings .filterwarnings ("ignore" , message = "Using unstable operation" )
21
18
__version__ = "0.1.0"
22
19
23
20
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ def get_slo(
48
48
dictionary.
49
49
""" # noqa: E501
50
50
with get_client (configuration , secrets ) as c :
51
- c .configuration .unstable_operations ["get_slo_history" ] = True
52
51
api = ServiceLevelObjectivesApi (c )
53
52
54
53
now = arrow .utcnow ()
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ pytest-cov
5
5
pytest-sugar
6
6
black
7
7
isort
8
- flake8
8
+ flake8
9
+ pyflakes == 2.4.0
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ def test_get_slo(rest):
12
12
r .data = json .dumps ({}).encode ("utf-8" )
13
13
cl = MagicMock ()
14
14
cl .request .return_value = r
15
+ cl .configuration .unstable_operations = {"get_slo_history" : False }
15
16
rest .RESTClientObject .return_value = cl
16
17
17
18
results = get_slo (slo_id = "slo1" )
You can’t perform that action at this time.
0 commit comments