Closed aabanaag closed 3 years ago
I added the httpserver config, but running my test fails because of the RuntimeError: MJML compile error (via MJML HTTP server):
RuntimeError: MJML compile error (via MJML HTTP server):
Is there a way to mock the MJML calls? I'm doing a mock on the actual email sending
with patch("requests.post") as mock_post: mock_post.return_value(ok=True, status=status.HTTP_201_CREATED)
@aabanaag try to mock MJMLRenderNode.render or mjml_render or _mjml_render_by_httpserver
MJMLRenderNode.render
mjml_render
_mjml_render_by_httpserver
Thank you, I got it by mocking _mjml_render_by_httpserver
I added the httpserver config, but running my test fails because of the
RuntimeError: MJML compile error (via MJML HTTP server):
Is there a way to mock the MJML calls? I'm doing a mock on the actual email sending