Skip to content

Commit

Permalink
tests: dynamodb: paramterise testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
turtleDev committed Dec 18, 2024
1 parent aebdb53 commit 6140d87
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ingestr/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,6 @@ def items_to_list(items):
local_stack.stop()


@pytest.fixture
def dynamodb_tests() -> Iterable[Callable]:
def assert_success(result):
if result.exception is not None:
Expand Down Expand Up @@ -1684,7 +1683,7 @@ def append_test(dest, dynamodb):
@pytest.mark.parametrize(
"dest", list(DESTINATIONS.values()), ids=list(DESTINATIONS.keys())
)
def test_dynamodb(dest, dynamodb, dynamodb_tests):
for test in dynamodb_tests:
test(dest, dynamodb)
@pytest.mark.parametrize("testcase", dynamodb_tests())
def test_dynamodb(dest, dynamodb, testcase):
testcase(dest, dynamodb)

0 comments on commit 6140d87

Please sign in to comment.