|
10 | 10 |
|
11 | 11 | import boto3 |
12 | 12 | import pytest |
| 13 | +from pytest_lazy_fixtures import lf as lazy_fixture |
13 | 14 | from typing_extensions import Literal |
14 | 15 |
|
15 | 16 | from dve.parser.exceptions import FileAccessError, LogDataLossWarning |
@@ -68,10 +69,10 @@ def test_s3_uri_raises_missing_bucket(): |
68 | 69 | @pytest.mark.parametrize( |
69 | 70 | "prefix", |
70 | 71 | [ |
71 | | - pytest.lazy_fixture("temp_prefix"), |
72 | | - pytest.lazy_fixture("temp_s3_prefix"), |
73 | | - pytest.lazy_fixture("temp_dbfs_prefix"), |
74 | | - ], # type: ignore |
| 72 | + lazy_fixture("temp_prefix"), |
| 73 | + lazy_fixture("temp_s3_prefix"), |
| 74 | + lazy_fixture("temp_dbfs_prefix"), |
| 75 | + ], # type: ignore # pylint: disable=E1102 |
75 | 76 | ) |
76 | 77 | class TestParametrizedFileInteractions: |
77 | 78 | """Tests which involve S3 and local filesystem.""" |
@@ -436,10 +437,10 @@ def test_filename_resolver_linux(uri, expected): |
436 | 437 | @pytest.mark.parametrize( |
437 | 438 | ["source_prefix", "target_prefix"], |
438 | 439 | [ |
439 | | - (pytest.lazy_fixture("temp_prefix"), pytest.lazy_fixture("temp_prefix")), # type: ignore |
440 | | - (pytest.lazy_fixture("temp_s3_prefix"), pytest.lazy_fixture("temp_s3_prefix")), # type: ignore |
441 | | - (pytest.lazy_fixture("temp_prefix"), pytest.lazy_fixture("temp_s3_prefix")), # type: ignore |
442 | | - (pytest.lazy_fixture("temp_s3_prefix"), pytest.lazy_fixture("temp_prefix")), # type: ignore |
| 440 | + (lazy_fixture("temp_prefix"), lazy_fixture("temp_prefix")), # type: ignore |
| 441 | + (lazy_fixture("temp_s3_prefix"), lazy_fixture("temp_s3_prefix")), # type: ignore |
| 442 | + (lazy_fixture("temp_prefix"), lazy_fixture("temp_s3_prefix")), # type: ignore |
| 443 | + (lazy_fixture("temp_s3_prefix"), lazy_fixture("temp_prefix")), # type: ignore |
443 | 444 | ], |
444 | 445 | ) |
445 | 446 | def test_copy_move_resource( |
@@ -476,11 +477,11 @@ def test_copy_move_resource( |
476 | 477 | @pytest.mark.parametrize( |
477 | 478 | ["source_prefix", "target_prefix"], |
478 | 479 | [ |
479 | | - (pytest.lazy_fixture("temp_prefix"), pytest.lazy_fixture("temp_prefix")), # type: ignore |
480 | | - (pytest.lazy_fixture("temp_s3_prefix"), pytest.lazy_fixture("temp_s3_prefix")), # type: ignore |
481 | | - (pytest.lazy_fixture("temp_prefix"), pytest.lazy_fixture("temp_s3_prefix")), # type: ignore |
482 | | - (pytest.lazy_fixture("temp_s3_prefix"), pytest.lazy_fixture("temp_prefix")), # type: ignore |
483 | | - ], |
| 480 | + (lazy_fixture("temp_prefix"), lazy_fixture("temp_prefix")), # type: ignore |
| 481 | + (lazy_fixture("temp_s3_prefix"), lazy_fixture("temp_s3_prefix")), # type: ignore |
| 482 | + (lazy_fixture("temp_prefix"), lazy_fixture("temp_s3_prefix")), # type: ignore |
| 483 | + (lazy_fixture("temp_s3_prefix"), lazy_fixture("temp_prefix")), # type: ignore |
| 484 | + ], # pylint: disable=E1102 |
484 | 485 | ) |
485 | 486 | def test_copy_move_prefix(source_prefix: str, target_prefix: str, action: Literal["copy", "move"]): |
486 | 487 | """Test that resources can be copied and moved.""" |
|
0 commit comments