19 lines
465 B
Python
19 lines
465 B
Python
import pytest
|
|
from moto.dynamodb.models import Table
|
|
|
|
|
|
@pytest.fixture
|
|
def table():
|
|
return Table(
|
|
"Forums",
|
|
region="us-east-1",
|
|
schema=[
|
|
{"KeyType": "HASH", "AttributeName": "forum_name"},
|
|
{"KeyType": "RANGE", "AttributeName": "subject"},
|
|
],
|
|
attr=[
|
|
{"AttributeType": "S", "AttributeName": "forum_name"},
|
|
{"AttributeType": "S", "AttributeName": "subject"},
|
|
],
|
|
)
|