Richard Vézina
ff44821f05
Close #1887 - remove Recaptcha V1
2018-03-26 16:21:21 -04:00
Richard Vézina
77c0384f79
Make pass test_login_bare() and little other improvements
2016-10-05 12:41:47 -04:00
niphlod
1bf499e3be
first step towards dropping sys.path dance
2016-08-29 23:01:22 +02:00
kelson
3bed4eee8c
fixed deprecated assertRaisesRegexp
...
added additional coverage tests
2016-08-17 18:27:44 -04:00
kelson
2b0166a8de
add_membership unittests
2016-08-17 18:14:39 -04:00
Giovanni Barillari
0528a347b3
Updated pyDAL to 16.08
2016-08-13 15:38:55 +02:00
mdipierro
35eaba1096
removed duplicated code, using pydal's _compat.py
2016-08-01 03:39:22 -05:00
niphlod
cae10a68c0
fixed most of py3 warnings, output is much cleaner this way
2016-07-18 23:45:28 +02:00
ilvalle
7259516627
fix tools
2016-06-13 20:20:44 +02:00
mdipierro
cadb130518
fixed expose tests
2016-06-12 20:27:20 -05:00
mdipierro
f4a353960b
merged conflicts
2016-06-12 19:59:58 -05:00
Chen Rotem Levy
9877ad5155
fix in_base for base='/'
...
If the base directory already ends with '/' the test failed.
It failed because we added an extra '/' to make sure that '/foobar' is
not under '/foo', so ask '/foobar/'.startswith('/foo/').
Whoever when we have the base already start with '/' we might test:
'/foo/bar/'.startwith('/foo//'), and give a false negative. We
shouldn't have this case, because we normalized the path, but in the
case of the root directory ('/') even a normalized path ends with '/',
and thus when base='/' this function failed.
Some re-factoring was needed to make this base testable.
2016-06-11 12:19:16 +03:00
Chen Rotem Levy
e020395bdc
apply pull request #1313
...
This should have resolved security issue#1261 -- gluon.tools.Expose
symlinks, however it does not deal well with the case where the base
exposed directory is '/'
2016-06-11 11:20:23 +03:00
ilvalle
a1fd92b7f8
updated imports in tests
2016-06-02 14:28:21 +02:00
ilvalle
01bab81432
manually adapt few imports
2016-06-01 20:16:30 +02:00
Michele Comitini
67f85fd631
allow token renewal with http authorization header.
2016-05-31 23:55:58 +02:00
Leonel Câmara
180ebcd7f1
Removed unnecessary version checks
...
Fixed 2 memory leaks in restricted.py
2016-05-19 19:03:54 +01:00
Michele Comitini
4658e172c3
removed forgotten print statement
2016-05-10 01:11:08 +02:00
Michele Comitini
2c26a8c33a
make allows_jwt a real decorator. Tests included!
2016-05-10 00:50:33 +02:00
mdipierro
85819a5f83
Merge pull request #1299 from BuhtigithuB/improve/auth-tests
...
New Auth tests
2016-04-17 21:27:35 -05:00
Hardirc
37fa90fbd2
.has_..., .add_..., .del_permission tests cases
2016-04-17 13:28:41 -04:00
Hardirc
2f0de8d8a0
New Auth tests & del_membership('role') api harmonization
2016-04-17 11:35:17 -04:00
Hardirc
70a0209e31
Reorder tests cases and make inventory + news tests
2016-04-16 21:33:24 -04:00
Hardirc
92b3c8f777
New Auth tests
2016-04-16 19:35:06 -04:00
Hardirc
d622a8aa66
New test suite for prettydate() + fix wrong number of days for month
2016-04-16 14:54:34 -04:00
Hardirc
b7cc1b2db5
Refactor Auth tests, new tests, old implementation commented for now
2016-04-14 03:01:15 -04:00
Leonel Câmara
02a0d1c9b0
minor reorder
2016-04-13 14:01:36 +01:00
Leonel Câmara
2bf0ad9268
test emails with alternative text and html
2016-04-13 14:00:33 +01:00
Leonel Câmara
00c65ad160
Complete coverage for Mail.Attachment
2016-04-12 15:28:48 +01:00
Hardirc
e0d86462c8
New logout_bare() for shell logout and refactor test using it
2016-04-06 22:46:24 -04:00
mdipierro
eee7be75c8
Merge pull request #1265 from BuhtigithuB/improve-tools-tests-some-more
...
Improve tools tests some more
2016-04-06 20:57:30 -05:00
Richard Vézina
0128ce3a93
Make test_login_bare() works, new test_impersonate()
2016-04-06 16:58:58 -04:00
Leonel Câmara
0629df71ef
Test Mail.Attachment sending test_tools.py itself
2016-04-06 20:04:21 +01:00
Richard Vézina
3a9221a2b9
Reach fully some partially hit lines
2016-03-31 17:00:50 -04:00
Richard Vézina
f7ad31f066
Refactor TestAuth() with setUp() and add test case
2016-03-31 16:25:02 -04:00
Richard Vézina
104d616cb9
Reorder test case and make inventory of what missing
2016-03-30 16:32:37 -04:00
Richard Vézina
a8703270da
PEP8 enhancement
2016-03-30 16:20:02 -04:00
Leonel Câmara
78fc14df81
minor - pep8 and naming consistency
2016-03-20 12:46:26 +00:00
Leonel Câmara
4311820494
tests for basic Mail functionality
2016-03-20 12:33:38 +00:00
gi0baro
5043731577
Updated tools tests for pydal
2015-01-17 13:35:52 +01:00
ilvalle
1c281cc163
Initial tests for auth
2015-01-12 08:18:00 +01:00