1 Star 1 Fork 1

linlongdeng/jupyterhub-localsqliteauthenticator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sqliteoperator-te.py 759 Bytes
一键复制 编辑 原始数据 按行查看 历史
lishijie 提交于 2018-07-04 20:40 +08:00 . 1. adduser debug fix
#coding=utf-8
import sqlite3
import os
from optparse import OptionParser
from sqliteauthenticator import SQLiteAuthenticator
import traceback
def _test():
authenticator = SQLiteAuthenticator()
authenticator.login_as_admin()
authenticator.sqlite_add_user(username='test_1', password='789456123') # passed
# authenticator.sqlite_update_password('test_1') # passed
# authenticator.sqlite_add_user(username='lishijie009', password='123456')
# authenticator.sqlite_delete_user(username='test_1') # passed
# authenticator.sqlite_update_password_admin('test_1') #passed
# authenticator.sqlite_add_user('test_2',password='789456123') #passed
# authenticator.sqlite_update_password_admin('test_2') #passed
pass
_test()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linlongdeng/jupyterhub-localsqliteauthenticator.git
git@gitee.com:linlongdeng/jupyterhub-localsqliteauthenticator.git
linlongdeng
jupyterhub-localsqliteauthenticator
jupyterhub-localsqliteauthenticator
master

搜索帮助