Skip to content

Commit f2f26fd

Browse files
committed
TST: fix more doctest failures
1 parent 14c0b58 commit f2f26fd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/ergast.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ as 'raw':
138138

139139
>>> ergast.get_circuits(season=2022, result_type='raw') # doctest: +NORMALIZE_WHITESPACE
140140
[{'circuitId': 'albert_park',
141-
'url': 'https://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit',
141+
'url': 'https://en.wikipedia.org/wiki/Albert_Park_Circuit',
142142
'circuitName': 'Albert Park Grand Prix Circuit',
143143
'Location': {'lat': -37.8497,
144144
'long': 144.968,
@@ -266,9 +266,9 @@ responds with:
266266
>>> seasons = ergast.get_seasons(limit=3)
267267
>>> seasons
268268
season seasonUrl
269-
0 1950 https://en.wikipedia.org/wiki/1950_Formula_One_...
270-
1 1951 https://en.wikipedia.org/wiki/1951_Formula_One_...
271-
2 1952 https://en.wikipedia.org/wiki/1952_Formula_One_...
269+
0 1950 https://en.wikipedia.org/wiki/1950_Formula_One...
270+
1 1951 https://en.wikipedia.org/wiki/1951_Formula_One...
271+
2 1952 https://en.wikipedia.org/wiki/1952_Formula_One...
272272

273273
It is possible to check whether a response contains all results and to obtain
274274
the total number of results:
@@ -287,19 +287,19 @@ same limit as before is used.
287287

288288
>>> seasons.get_next_result_page()
289289
season seasonUrl
290-
0 1953 https://en.wikipedia.org/wiki/1953_Formula_One_...
291-
1 1954 https://en.wikipedia.org/wiki/1954_Formula_One_...
292-
2 1955 https://en.wikipedia.org/wiki/1955_Formula_One_...
290+
0 1953 https://en.wikipedia.org/wiki/1953_Formula_One...
291+
1 1954 https://en.wikipedia.org/wiki/1954_Formula_One...
292+
2 1955 https://en.wikipedia.org/wiki/1955_Formula_One...
293293

294294
It is also possible to manually specify an offset into the dataset:
295295

296296
.. doctest::
297297

298298
>>> ergast.get_seasons(limit=3, offset=6)
299299
season seasonUrl
300-
0 1956 https://en.wikipedia.org/wiki/1956_Formula_One_...
301-
1 1957 https://en.wikipedia.org/wiki/1957_Formula_One_...
302-
2 1958 https://en.wikipedia.org/wiki/1958_Formula_One_...
300+
0 1956 https://en.wikipedia.org/wiki/1956_Formula_One...
301+
1 1957 https://en.wikipedia.org/wiki/1957_Formula_One...
302+
2 1958 https://en.wikipedia.org/wiki/1958_Formula_One...
303303

304304

305305
API Reference

0 commit comments

Comments
 (0)