Skip to content

Commit 5b4701f

Browse files
committed
various cleanups
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
1 parent 827a68d commit 5b4701f

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

chaosdatadog/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
import warnings
31
from contextlib import contextmanager
42
from typing import Generator, List
53

@@ -17,7 +15,6 @@
1715
from datadog_api_client import Configuration as DDCfg
1816
from logzero import logger
1917

20-
warnings.filterwarnings("ignore", message="Using unstable operation")
2118
__version__ = "0.1.0"
2219

2320

chaosdatadog/slo/probes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def get_slo(
4848
dictionary.
4949
""" # noqa: E501
5050
with get_client(configuration, secrets) as c:
51-
c.configuration.unstable_operations["get_slo_history"] = True
5251
api = ServiceLevelObjectivesApi(c)
5352

5453
now = arrow.utcnow()

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ pytest-cov
55
pytest-sugar
66
black
77
isort
8-
flake8
8+
flake8
9+
pyflakes==2.4.0

tests/test_probes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def test_get_slo(rest):
1212
r.data = json.dumps({}).encode("utf-8")
1313
cl = MagicMock()
1414
cl.request.return_value = r
15+
cl.configuration.unstable_operations = {"get_slo_history": False}
1516
rest.RESTClientObject.return_value = cl
1617

1718
results = get_slo(slo_id="slo1")

0 commit comments

Comments
 (0)