# Path: models/secret.py
# class Secret(ndb.Model):
#     value = ndb.StringProperty()


from models import Secret
# -*- coding: utf-8 -*-


def create_secret(id, value='secret'):
    secret = Secret(id=id, value=value)
    secret.put()

# Path: models/secret.py
# class Secret(ndb.Model):
#     value = ndb.StringProperty()


# Path: testing/factories/secret.py
from models import Secret

# -*- coding: utf-8 -*-


def create_secret(id, value='secret'):
    secret = Secret(id=id, value=value)
    secret.put()

    return secret