<filename>pylib/tests/test_weather.py
from moto import mock_dynamodb2

from post_components.weather import Weather

from .common import setup_darksky


@mock_dynamodb2
def test_weather():
    setup_darksky()

    t = Weather()
    response = t.get_body()
    assert response

<filename>pylib/tests/test_weather.py
from moto import mock_dynamodb2

from post_components.weather import Weather

from .common import setup_darksky


@mock_dynamodb2
def test_weather():
    setup_darksky()

    t = Weather()
    response = t.get_body()
    assert response
