2020-11-17 09:12:39 +00:00
|
|
|
import pytest
|
|
|
|
from moto.dynamodb2.models import Table
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def table():
|
|
|
|
return Table(
|
|
|
|
"Forums",
|
|
|
|
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
|
|
|
)
|