Skip to content

Commit 8b808a9

Browse files
committed
style(tests): format test flusurv with black
1 parent a1a1434 commit 8b808a9

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

tests/acquisition/flusurv/test_flusurv.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@
88
from delphi.epidata.acquisition.flusurv.flusurv import fetch_json
99

1010
# py3tester coverage target
11-
__test_target__ = 'delphi.epidata.acquisition.flusurv.flusurv'
11+
__test_target__ = "delphi.epidata.acquisition.flusurv.flusurv"
1212

1313

1414
class FunctionTests(unittest.TestCase):
15-
"""Tests each function individually."""
15+
"""Tests each function individually."""
1616

17-
def test_fetch_json(self):
18-
"""Run through a successful flow."""
17+
def test_fetch_json(self):
18+
"""Run through a successful flow."""
1919

20-
path = 'path'
21-
payload = None
20+
path = "path"
21+
payload = None
2222

23-
response_object = MagicMock()
24-
response_object.status_code = 200
25-
response_object.headers = {'Content-Type': 'application/json'}
26-
response_object.json.return_value = sentinel.expected
23+
response_object = MagicMock()
24+
response_object.status_code = 200
25+
response_object.headers = {"Content-Type": "application/json"}
26+
response_object.json.return_value = sentinel.expected
2727

28-
requests_impl = MagicMock()
29-
requests_impl.get.return_value = response_object
28+
requests_impl = MagicMock()
29+
requests_impl.get.return_value = response_object
3030

31-
actual = fetch_json(path, payload, requests_impl=requests_impl)
31+
actual = fetch_json(path, payload, requests_impl=requests_impl)
3232

33-
self.assertEqual(actual, sentinel.expected)
33+
self.assertEqual(actual, sentinel.expected)

tests/acquisition/flusurv/test_flusurv_update.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
import unittest
55

66
# py3tester coverage target
7-
__test_target__ = 'delphi.epidata.acquisition.flusurv.flusurv_update'
7+
__test_target__ = "delphi.epidata.acquisition.flusurv.flusurv_update"
88

99

1010
class FunctionTests(unittest.TestCase):
11-
"""Tests each function individually."""
11+
"""Tests each function individually."""
1212

13-
def test_syntax(self):
14-
"""This no-op test ensures that syntax is valid."""
15-
pass
13+
def test_syntax(self):
14+
"""This no-op test ensures that syntax is valid."""
15+
pass

0 commit comments

Comments
 (0)