"""conftest. This file gets picked up when running py.test tests: http://pytest.org/latest/writing_plugins.html#conftest """ import application import pytest from tests.testutils.seed import vendor_seed @pytest.fixture def client(): """Return flask test client. Returns: flask client: flask test client """ return application.app.test_client() @pytest.fixture def test_vendor(): """Return a vendor dict for testing.""" return vendor_seed.vendor_seed_data[1] @pytest.fixture def vendor_max_tuid(): """Return max vendor_id in test database.""" return vendor_seed.get_max_vendor_id()