Skip to content

Commit dfb869f

Browse files
committed
Change indentation in test file
1 parent ee7e26c commit dfb869f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tests/test_polygon/test_rest.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ def reqmock():
1010

1111

1212
def endpoint(path, params='', api_version='v1'):
13-
return 'https://api.polygon.io/{}{}?{}&apiKey=key-id'.format(api_version, path, params)
13+
return 'https://api.polygon.io/{}{}?{}&apiKey=key-id'.format(
14+
api_version, path, params
15+
)
1416

1517

1618
def test_polygon(reqmock):
@@ -218,8 +220,10 @@ def test_polygon(reqmock):
218220

219221
# Historic Aggregates V2
220222
reqmock.get(
221-
endpoint('/aggs/ticker/AAPL/range/1/day/2018-2-2/2018-2-5',
222-
params='unadjusted=False', api_version='v2'),
223+
endpoint(
224+
'/aggs/ticker/AAPL/range/1/day/2018-2-2/2018-2-5',
225+
params='unadjusted=False', api_version='v2'
226+
),
223227
text='''
224228
{
225229
"ticker": "AAPL",
@@ -239,9 +243,11 @@ def test_polygon(reqmock):
239243
]
240244
}''')
241245

242-
aggs = cli.historic_agg_v2('AAPL', 1, 'day',
243-
_from='2018-2-2',
244-
to='2018-2-5')
246+
aggs = cli.historic_agg_v2(
247+
'AAPL', 1, 'day',
248+
_from='2018-2-2',
249+
to='2018-2-5'
250+
)
245251
assert aggs[0].o == 173.15
246252
assert len(aggs) == 1
247253
assert aggs.df.iloc[0].h == 173.21

0 commit comments

Comments
 (0)