<reponame>thusoy/porridge
# coding: utf-8

from __future__ import unicode_literals

import pytest

from porridge import Porridge


KETTLES = (
    Porridge('key1:secret1',
        time_cost=1,
        memory_cost=8,
        parallelism=1,
    ),
    Porridge('key2:secret2,key1:secret1',
        time_cost=1,
        memory_cost=8,
        parallelism=1,
    )
)

@pytest.fixture(params=KETTLES)
def porridge(request):
    '''A Porridge-instance suitable for testing.

    Does no environment check and has very fast parameters.
    '''
    return request.param


PASSWORDS = (
    "<PASSWORD>".encode("latin-1"), # bytes
    "<PASSWORD>", # unicode
    "password", # plain ascii
)

@pytest.fixture(params=PASSWORDS)
def password(request):
    '''A valid password, both as unicode and bytes'''
    return request.param

# coding: utf-8

from __future__ import unicode_literals

import pytest

from porridge import Porridge


KETTLES = (
    Porridge('key1:secret1',
        time_cost=1,
        memory_cost=8,
        parallelism=1,
    ),
    Porridge('key2:secret2,key1:secret1',
        time_cost=1,
        memory_cost=8,
        parallelism=1,
    )
)

@pytest.fixture(params=KETTLES)
def porridge(request):
    '''A Porridge-instance suitable for testing.

    Does no environment check and has very fast parameters.
    '''
    return request.param


PASSWORDS = (
    "<PASSWORD>".encode("latin-1"), # bytes
    "<PASSWORD>", # unicode
    "password", # plain ascii
)

@pytest.fixture(params=PASSWORDS)
def password(request):
    '''A valid password, both as unicode and bytes'''
    return request.param
# coding: utf-8 A Porridge-instance suitable for testing.      Does no environment check and has very fast parameters. # bytes # unicode # plain ascii A valid password, both as unicode and bytes