Did I find the right examples for you? yes no

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

src/d/j/django-fixtureless-HEAD/fixtureless/generator.py   django-fixtureless(Download)
        elif conn_type.startswith('smallint'):
            limits = (constants.POSTGRES_SMALLINT_MIN,
                      constants.POSTGRES_SMALLINT_MAX)
        else:
            raise TypeError('unknown type for field {}: {}'.format(

src/d/j/django-fixtureless-1.2.0/fixtureless/generator.py   django-fixtureless(Download)
        elif conn_type.startswith('smallint'):
            limits = (constants.POSTGRES_SMALLINT_MIN,
                      constants.POSTGRES_SMALLINT_MAX)
        else:
            raise TypeError('unknown type for field {}: {}'.format(

src/d/j/django-fixtureless-HEAD/fixtureless/tests/test_django_project/test_django_project/test_app/tests/generator.py   django-fixtureless(Download)
from test_app.models import ModelOne, ModelTwo
from fixtureless.generator import create_instance
from fixtureless.constants import POSTGRES_SMALLINT_MAX, POSTGRES_INT_MAX, PY3
 
 
    def test_positive_small_integer_field(self):
        self.assertIsInstance(self.model_one.positive_small_integer_field, int)
        exp = 0 <= self.model_one.positive_small_integer_field <= \
            POSTGRES_SMALLINT_MAX
        self.assertTrue(exp)