Ejemplo n.º 1
0
def consumestore_fixture(consumemodel_fixture):
    """Test fixture to ensure correct mocking for parsedpage."""
    test_consumemodel = consumemodel_fixture
    test_consumemodel.load_from_config(TEST_CONFIG)
    return consumestore.get_instance(
        test_consumemodel,
        img_dir=TEST_PATH,
        data_dir=TEST_PATH
    )
Ejemplo n.º 2
0
def test_save_media_raises_typeerror_on_non_model():
    """Test consumestore.get_instance raises a TypeError when expected."""
    with pytest.raises(TypeError):
        consumestore.get_instance(
            model=''
        )