MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / cleanup_table

Function cleanup_table

tests/test_import_export.py:68–82  ·  view source on GitHub ↗

Ensure table is deleted after test.

(dynamodb_client)

Source from the content-addressed store, hash-verified

66 return f"extenddb-ie-test-{uuid.uuid4().hex[:8]}"
67@pytest.fixture()
68def cleanup_table(dynamodb_client):
69 """Ensure table is deleted after test."""
70 tables: list[str] = []
71
72 def _register(name: str) -> None:
73 tables.append(name)
74
75 yield _register
76
77 for name in tables:
78 try:
79 dynamodb_client.delete_table(TableName=name)
80 wait_for_deleted(dynamodb_client, name)
81 except Exception:
82 pass
83# ---------------------------------------------------------------------------
84# ExportTableToPointInTime
85# ---------------------------------------------------------------------------

Calls 2

wait_for_deletedFunction · 0.90
delete_tableMethod · 0.80

Tested by

no test coverage detected