2020-11-17 09:12:39 +00:00
|
|
|
import pytest
|
2023-11-30 15:55:51 +00:00
|
|
|
|
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
|
2020-11-17 09:12:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
@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",
|
2020-11-17 09:12:39 +00:00
|
|
|
schema=[
|
|
|
|
{"KeyType": "HASH", "AttributeName": "forum_name"},
|
|
|
|
{"KeyType": "RANGE", "AttributeName": "subject"},
|
|
|
|
],
|
2021-11-10 21:42:33 +00:00
|
|
|
attr=[
|
|
|
|
{"AttributeType": "S", "AttributeName": "forum_name"},
|
|
|
|
{"AttributeType": "S", "AttributeName": "subject"},
|
|
|
|
],
|
2020-11-17 09:12:39 +00:00
|
|
|
)
|