|
28 | 28 |
|
29 | 29 | from . import init_integration |
30 | 30 |
|
31 | | -pytestmark = pytest.mark.usefixtures("mock_setup_entry") |
32 | | - |
33 | 31 |
|
| 32 | +@pytest.mark.usefixtures("mock_setup_entry") |
34 | 33 | async def test_form(hass: HomeAssistant) -> None: |
35 | 34 | """Test we get the forms.""" |
36 | 35 |
|
@@ -74,6 +73,7 @@ async def test_form(hass: HomeAssistant) -> None: |
74 | 73 | } |
75 | 74 |
|
76 | 75 |
|
| 76 | +@pytest.mark.usefixtures("mock_setup_entry") |
77 | 77 | async def test_form_province_no_alias(hass: HomeAssistant) -> None: |
78 | 78 | """Test we get the forms.""" |
79 | 79 |
|
@@ -115,6 +115,7 @@ async def test_form_province_no_alias(hass: HomeAssistant) -> None: |
115 | 115 | } |
116 | 116 |
|
117 | 117 |
|
| 118 | +@pytest.mark.usefixtures("mock_setup_entry") |
118 | 119 | async def test_form_no_country(hass: HomeAssistant) -> None: |
119 | 120 | """Test we get the forms correctly without a country.""" |
120 | 121 |
|
@@ -154,6 +155,7 @@ async def test_form_no_country(hass: HomeAssistant) -> None: |
154 | 155 | } |
155 | 156 |
|
156 | 157 |
|
| 158 | +@pytest.mark.usefixtures("mock_setup_entry") |
157 | 159 | async def test_form_no_subdivision(hass: HomeAssistant) -> None: |
158 | 160 | """Test we get the forms correctly without subdivision.""" |
159 | 161 |
|
@@ -196,6 +198,7 @@ async def test_form_no_subdivision(hass: HomeAssistant) -> None: |
196 | 198 | } |
197 | 199 |
|
198 | 200 |
|
| 201 | +@pytest.mark.usefixtures("mock_setup_entry") |
199 | 202 | async def test_options_form(hass: HomeAssistant) -> None: |
200 | 203 | """Test we get the form in options.""" |
201 | 204 |
|
@@ -242,6 +245,7 @@ async def test_options_form(hass: HomeAssistant) -> None: |
242 | 245 | } |
243 | 246 |
|
244 | 247 |
|
| 248 | +@pytest.mark.usefixtures("mock_setup_entry") |
245 | 249 | async def test_form_incorrect_dates(hass: HomeAssistant) -> None: |
246 | 250 | """Test errors in setup entry.""" |
247 | 251 |
|
@@ -314,6 +318,7 @@ async def test_form_incorrect_dates(hass: HomeAssistant) -> None: |
314 | 318 | } |
315 | 319 |
|
316 | 320 |
|
| 321 | +@pytest.mark.usefixtures("mock_setup_entry") |
317 | 322 | async def test_options_form_incorrect_dates(hass: HomeAssistant) -> None: |
318 | 323 | """Test errors in options.""" |
319 | 324 |
|
@@ -390,6 +395,7 @@ async def test_options_form_incorrect_dates(hass: HomeAssistant) -> None: |
390 | 395 | } |
391 | 396 |
|
392 | 397 |
|
| 398 | +@pytest.mark.usefixtures("mock_setup_entry") |
393 | 399 | async def test_options_form_abort_duplicate(hass: HomeAssistant) -> None: |
394 | 400 | """Test errors in options for duplicates.""" |
395 | 401 |
|
@@ -443,6 +449,7 @@ async def test_options_form_abort_duplicate(hass: HomeAssistant) -> None: |
443 | 449 | assert result2["errors"] == {"base": "already_configured"} |
444 | 450 |
|
445 | 451 |
|
| 452 | +@pytest.mark.usefixtures("mock_setup_entry") |
446 | 453 | async def test_form_incorrect_date_range(hass: HomeAssistant) -> None: |
447 | 454 | """Test errors in setup entry.""" |
448 | 455 |
|
@@ -515,6 +522,7 @@ async def test_form_incorrect_date_range(hass: HomeAssistant) -> None: |
515 | 522 | } |
516 | 523 |
|
517 | 524 |
|
| 525 | +@pytest.mark.usefixtures("mock_setup_entry") |
518 | 526 | async def test_options_form_incorrect_date_ranges(hass: HomeAssistant) -> None: |
519 | 527 | """Test errors in options.""" |
520 | 528 |
|
@@ -591,9 +599,6 @@ async def test_options_form_incorrect_date_ranges(hass: HomeAssistant) -> None: |
591 | 599 | } |
592 | 600 |
|
593 | 601 |
|
594 | | -pytestmark = pytest.mark.usefixtures() |
595 | | - |
596 | | - |
597 | 602 | @pytest.mark.parametrize( |
598 | 603 | ("language", "holiday"), |
599 | 604 | [ |
|
0 commit comments