You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# u = User(username="default", email="default@example.com", password_hash=hashed_pass, password_salt=s, role="admin")
# db.session.add(u)
# db.session.commit()
u = add_user("default", "password", "default@example.com", role="admin")
# Add test documents
eid = hashlib.sha256(b"First test document").hexdigest()
d = Document(author_id=u.id, title="First test document", external_id=eid, description="Our first document", body="<html><body><h1>First doc</h1></body></html>")