Source code for moe_examples.tests.moe_example_test_case

# -*- coding: utf-8 -*-
"""Base class for testing the moe examples."""
import pytest


[docs]class MoeExampleTestCase(object): """Base class for testing the moe examples.""" @classmethod @pytest.fixture(autouse=True, scope='class')
[docs] def create_webapp(cls): """Create a mocked webapp and store it in cls.testapp.""" from moe import main app = main({}, use_mongo='false') from webtest import TestApp cls.testapp = TestApp(app)