2020-11-17 01:12:39 -08:00
|
|
|
import pytest
|
2022-03-09 16:57:25 -01:00
|
|
|
from moto.dynamodb.models import Table
|
2020-11-17 01:12:39 -08:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def table():
|
|
|
|
return Table(
|
|
|
|
"Forums",
|
2022-02-10 19:09:45 -01:00
|
|
|
region="us-east-1",
|
2020-11-17 01:12:39 -08:00
|
|
|
schema=[
|
|
|
|
{"KeyType": "HASH", "AttributeName": "forum_name"},
|
|
|
|
{"KeyType": "RANGE", "AttributeName": "subject"},
|
|
|
|
],
|
2021-11-10 20:42:33 -01:00
|
|
|
attr=[
|
|
|
|
{"AttributeType": "S", "AttributeName": "forum_name"},
|
|
|
|
{"AttributeType": "S", "AttributeName": "subject"},
|
|
|
|
],
|
2020-11-17 01:12:39 -08:00
|
|
|
)
|