Did I find the right examples for you? yes no

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

src/d/j/django-fixtureless-1.2.0/fixtureless/factory.py   django-fixtureless(Download)
                msg = 'The fixturless factory expected kwargs of type dict' \
                      ' and was given type {}'.format(type(val))
                raise exceptions.InvalidArguments(msg)
        elif not isinstance(vals, dict) and vals is not None:
            msg = 'The fixturless factory expected kwargs of type dict' \
                  ' and was given type {}'.format(type(vals))
            raise exceptions.InvalidArguments(msg)
                model = args[0]
            else:
                raise exceptions.InvalidArguments()
        except (IndexError, exceptions.InvalidArguments):
            msg = 'The fixtureless factory expects a Django model ({}) as' \
                  ' the first argument.'.format(type(Model))
            raise exceptions.InvalidArguments(msg)

src/d/j/django-fixtureless-HEAD/fixtureless/factory.py   django-fixtureless(Download)
                msg = 'The fixturless factory expected kwargs of type dict' \
                      ' and was given type {}'.format(type(val))
                raise exceptions.InvalidArguments(msg)
        elif not isinstance(vals, dict) and vals is not None:
            msg = 'The fixturless factory expected kwargs of type dict' \
                  ' and was given type {}'.format(type(vals))
            raise exceptions.InvalidArguments(msg)
                model = args[0]
            else:
                raise exceptions.InvalidArguments()
        except (IndexError, exceptions.InvalidArguments):
            msg = 'The fixtureless factory expects a Django model ({}) as' \
                  ' the first argument.'.format(type(Model))
            raise exceptions.InvalidArguments(msg)

src/d/j/django-fixtureless-HEAD/fixtureless/tests/test_django_project/test_django_project/test_app/tests/factory.py   django-fixtureless(Download)
 
from fixtureless import Factory
from fixtureless.exceptions import InvalidArguments
from test_app.models import ModelOne, ModelTwo