2021-10-18 19:44:29 +00:00
|
|
|
import sure # noqa # pylint: disable=unused-import
|
2020-10-06 05:54:49 +00:00
|
|
|
import pytest
|
2013-02-20 01:39:04 +00:00
|
|
|
|
2022-01-18 15:18:57 +00:00
|
|
|
from moto import mock_dynamodb
|
2013-03-10 19:46:27 +00:00
|
|
|
|
2013-02-19 13:26:05 +00:00
|
|
|
|
2021-11-04 22:39:53 +00:00
|
|
|
def test_deprecation_warning():
|
|
|
|
with pytest.warns(None) as record:
|
|
|
|
mock_dynamodb()
|
|
|
|
str(record[0].message).should.contain(
|
|
|
|
"Module mock_dynamodb has been deprecated, and will be repurposed in a later release"
|
|
|
|
)
|