Skip to content

Commit

Permalink
Cleanup tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABPLMC committed May 16, 2024
1 parent d8175d2 commit f2f23a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,18 @@ def table_maker(request, dynamodb):
def maker(records):
table_name = 'test'
latest_table_name = 'test_latest'
latest_table = None

table = _create_table(dynamodb, table_name, attribute_definitions, key_schema, global_secondary)

latest_table = _create_table(dynamodb, latest_table_name, latest_attribute_definitions, latest_key_schema)
_populate_table(latest_table, records)

_populate_table(latest_table, records)
_populate_table(table, records)

def tear_down():
_delete_table(table)
_delete_table(latest_table)

request.addfinalizer(tear_down)

return (table, latest_table)

return maker
Expand Down

0 comments on commit f2f23a4

Please sign in to comment.