|
9 | 9 | import pytest
|
10 | 10 | from pytz import FixedOffset, utc
|
11 | 11 |
|
| 12 | +import pandas.util._test_decorators as td |
| 13 | + |
12 | 14 | import pandas as pd
|
13 | 15 | from pandas import DataFrame
|
14 | 16 | import pandas.util.testing as tm
|
@@ -376,20 +378,23 @@ def unique_nulls_fixture(request):
|
376 | 378 | FixedOffset(0), FixedOffset(-300), timezone.utc,
|
377 | 379 | timezone(timedelta(hours=1)),
|
378 | 380 | timezone(timedelta(hours=-1), name='foo')]
|
| 381 | +TIMEZONE_IDS = [repr(i) for i in TIMEZONES] |
379 | 382 |
|
380 | 383 |
|
381 |
| -@pytest.fixture(params=TIMEZONES, ids=repr) |
| 384 | +@td.parametrize_fixture_doc(str(TIMEZONE_IDS)) |
| 385 | +@pytest.fixture(params=TIMEZONES, ids=TIMEZONE_IDS) |
382 | 386 | def tz_naive_fixture(request):
|
383 | 387 | """
|
384 |
| - Fixture for trying timezones including default (None) |
| 388 | + Fixture for trying timezones including default (None): {0} |
385 | 389 | """
|
386 | 390 | return request.param
|
387 | 391 |
|
388 | 392 |
|
389 |
| -@pytest.fixture(params=TIMEZONES[1:], ids=repr) |
| 393 | +@td.parametrize_fixture_doc(str(TIMEZONE_IDS[1:])) |
| 394 | +@pytest.fixture(params=TIMEZONES[1:], ids=TIMEZONE_IDS[1:]) |
390 | 395 | def tz_aware_fixture(request):
|
391 | 396 | """
|
392 |
| - Fixture for trying explicit timezones |
| 397 | + Fixture for trying explicit timezones: {0} |
393 | 398 | """
|
394 | 399 | return request.param
|
395 | 400 |
|
|
0 commit comments