add enough example data that we don't fail when disconnected from the vpn and ldap doing basic development tasks

This commit is contained in:
Dan 2020-12-01 11:47:59 -05:00
parent afc0cbf83e
commit 75124a8dba
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import os
from crc import app, db, session
from crc.models.file import CONTENT_TYPES
from crc.models.ldap import LdapModel
from crc.models.user import UserModel
from crc.models.workflow import WorkflowSpecModel, WorkflowSpecCategoryModel
from crc.services.file_service import FileService
@ -327,8 +328,10 @@ class ExampleDataLoader:
file.close()
def load_default_user(self):
user = UserModel(uid="xxx9x", email_address="xxx9x@virginia.edu", display_name="Development User")
user = UserModel(uid="dhf8r", email_address="dhf8r@virginia.edu", display_name="Development User")
ldap_info = LdapModel(uid="dhf8r", email_address="dhf8r@virginia.edu", display_name="Development User")
db.session.add(user)
db.session.add(ldap_info)
db.session.commit()
def ldap(): return "x";