Commit Graph

55 Commits

Author SHA1 Message Date
Harry-zklcdc
88b62192be [Fix] Test Error 2021-08-07 14:37:36 +08:00
virusdefender
f2576a9411 fix tests 2019-03-26 10:51:49 +08:00
virusdefender
6b7654a0c3 update to django 2.0 2019-03-11 11:25:10 +08:00
zema1
93cb2bc3fe Added: language profile 2018-07-15 12:43:44 +08:00
zema1
fc35e5ed79 filter admin users in all rankings 2017-12-06 15:54:08 +08:00
virusdefender
00eb3b1967 add api to reset openapi appkey and related middleware 2017-11-25 22:31:04 +08:00
virusdefender
2d038c7bcc use bulk_create and transaction for user generator 2017-11-24 23:53:47 +08:00
virusdefender
7cc33d0701 use bulk_create and transcation for importing user 2017-11-24 23:31:30 +08:00
zema1
a87d73393d 补全account测试 2017-11-23 21:12:37 +08:00
zema1
728373a5ff 完善contest权限控制 2017-10-27 18:36:29 +08:00
zema1
d8bf33a12d fix tests 2017-10-21 10:51:35 +08:00
virusdefender
93bd77d8d8 bug fixes 2017-10-09 18:55:25 +08:00
zema1
2a91fd5e9f fix bugs due to problem id 2017-09-29 21:58:20 +08:00
zema1
e9c7344815 adjust account fields, cache the website_config 2017-09-22 16:41:29 +08:00
zema1
034ad59f2e support avatar upload;
use middleware to operate session data.
2017-09-19 19:10:50 +08:00
zema1
1ee0596a3a add session management api; add more unit tests for account module 2017-09-16 20:40:56 +08:00
zema1
a3ca8b2336 Use signals to save ip, user_agent, last_login in sessions 2017-09-16 17:42:43 +08:00
virusdefender
ef9cdd9f75 remove i18n 2017-04-19 02:03:48 +08:00
virusdefender
817e5aadae rename some method and add some decorator 2017-02-10 11:46:23 +08:00
virusdefender
802f27a516 add user problem permission 2017-02-10 10:38:32 +08:00
virusdefender
d9fad97e35 isort 2017-01-23 16:48:04 +08:00
virusdefender
5c5cf7ff98 fix basic ci 2017-01-23 16:05:52 +08:00
virusdefender
637baba71b add conf app and related test and settings 2016-11-19 13:47:59 +08:00
virusdefender
172fd4b1f4 使用Python3和更科学的API写法 2016-11-19 12:32:23 +08:00
virusdefender
39857d1b56 add some tests 2016-10-30 02:17:35 +08:00
virusdefender
eb02a00859
修改账户系统以及部分用户权限写法
增加部分测试和注释,完善国际化
2016-06-23 12:19:16 +08:00
virusdefender
a120733121 开始重构测试 2016-03-28 18:43:13 +08:00
virusdefender
b43970d058 修复 account 里面失败的测试;优化权限 decorator 的写法 2015-10-14 09:57:43 +08:00
hohoTT
aab770b8bf Merge branch 'dev' into hohoTT-dev
Conflicts:
	contest/views.py
2015-09-07 20:01:59 +08:00
sxw@401
2b48822dba 修改account测试的问题 2015-09-05 16:44:16 +08:00
sxw@401
75b1bf749e 修改测试中使用相对id的地方,原来测试里用了很多id是自己设置的常量,可能引发了错误 2015-09-05 16:25:05 +08:00
hohoTT
9d01c9fbe9 Merge branch 'dev' into hohoTT-dev 2015-09-02 15:48:31 +08:00
esp
0e322da9d6 [前台]修改修改密码功能,api添加@login_requrie,去掉界面和api中的username字段,这个从request可以拿到,要用户输入反而不好弄了,也没必要,顺便改了测试[CI不能SKIP] 2015-09-01 19:04:07 +08:00
hohoTT
2252107a80 完善部分测试 2015-08-29 15:20:49 +08:00
esp
f8677f4966 [后端-前台]增加用户注销功能,这个并没有做成api,感觉这个做成api可能没什么必要...所以干脆写了地址重定向到首页了,测试通过account.tests.py 2015-08-27 22:26:00 +08:00
virusdefender
fca5abaf6d 修复 account 里面的单元测试错误 2015-08-24 03:56:12 +08:00
virusdefender
f682aa1fb3 没有登录的时候自动跳转到登录页面,修改相关测试 2015-08-23 20:45:02 +08:00
hohoTT
0fcbbc962e 增加及修改account与announcement的测试 2015-08-20 20:24:51 +08:00
hohoTT
aa99e9f634 修改并删除测试中不必要的东西 2015-08-15 20:56:39 +08:00
virusdefender
174752b9b1 修复测试同名问题 2015-08-14 10:36:23 +08:00
virusdefender
e84039eea1 增加逻辑判断用户名重复的问题 2015-08-14 10:21:50 +08:00
hohoTT
b37b0d34c6 Merge branch 'dev' into hohoTT-dev
Conflicts:
	oj/settings.py
	oj/urls.py
	problem/views.py
2015-08-10 15:20:17 +08:00
hohoTT
b089455bba 修改account和announcement中的测试用例,改为当前为管理员用户的登录状态 2015-08-09 19:19:59 +08:00
hohoTT
1b8d7d3ad5 修改了用户编辑密码时,密码是否编辑的两个测试用例 2015-08-08 14:59:42 +08:00
hohoTT
69385e96d2 增加了用户管理和编辑的API及相应的测试 2015-08-07 20:25:58 +08:00
virusdefender
62f07e713f 增加 @admin_required 修饰符代码和对应的测试 2015-08-06 12:25:16 +08:00
hohoTT
98f8b65011 在account/tests.py中删除不必要的代码 2015-08-05 20:23:42 +08:00
hohoTT
117a6d3525 增加用户密码修改成功的API测试,以及增加用户邮箱字段并做了相应的API测试,目前的account/view.py测试覆盖率为100% 2015-08-05 20:11:25 +08:00
virusdefender
c72624e2d5 增加 login_required decorator 和对应的测试 2015-08-04 13:22:37 +08:00
hohoTT
b7280719ac 新增修改用户密码和对应的API测试功能 2015-08-03 19:54:55 +08:00