Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/model/users/test_models.py   portfoliyo(Download)
 
from portfoliyo import model
from portfoliyo.model.users.models import generate_code
from portfoliyo.tests import factories, utils
 
        with mock.patch(target) as mock_b32encode:
            mock_b32encode.return_value = '22222222222ABC'
            code = generate_code('foo', 6)
 
        assert code == 'ABCABC'