<filename>tests/test_requests.py
import json
from unittest.mock import Mock
import main



def test_print_hello_world():
    data = {}
    req = Mock(get_json=Mock(return_value=data), args=data)
    # Call tested function
    assert main.hello_http(req) == 'Hello World!'