moto/tests/test_dynamodb/conftest.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
545 B
Python
Raw Normal View History

import pytest
2022-08-13 09:49:43 +00:00
from moto.core import DEFAULT_ACCOUNT_ID
2022-03-09 17:57:25 +00:00
from moto.dynamodb.models import Table
@pytest.fixture
def table():
return Table(
"Forums",
2022-08-13 09:49:43 +00:00
account_id=DEFAULT_ACCOUNT_ID,
2022-02-10 20:09:45 +00:00
region="us-east-1",
schema=[
{"KeyType": "HASH", "AttributeName": "forum_name"},
{"KeyType": "RANGE", "AttributeName": "subject"},
],
attr=[
{"AttributeType": "S", "AttributeName": "forum_name"},
{"AttributeType": "S", "AttributeName": "subject"},
],
)