Commit graph

64 commits

Author SHA1 Message Date
Marcus Martins
95eac511eb Provide helper TestCases to be used with Defender
Provide TransactionTestCase and TestCase that clear the
defender cache between runs.
2015-01-12 13:28:33 -08:00
Ken Cochrane
996e1cd68e Merge pull request #21 from marcusmartins/better_test_coverage
refactor is_already_locked and add better test coverage
2015-01-12 16:00:45 -05:00
Marcus Martins
103e29a437 Add compatibility for python 2.6 2015-01-12 09:53:40 -08:00
Marcus Martins
351148b239 refactor is_already_locked and add better test coverage
Simplify the is_already_locked code and make sure
that we're testing that code better.
2015-01-12 09:42:38 -08:00
Ken Cochrane
a0d94d5220 Merge pull request #19 from marcusmartins/mock_redis_outside_tests
Allow redis connections to be mocked outside tests
2015-01-08 17:10:18 -05:00
Marcus Martins
d72e32cfc1 Allow redis connections to be mocked outside tests
Use a mocked instance of redis outside tests so we can use it
on django projects.
2015-01-08 12:56:33 -08:00
Ken Cochrane
2a1ab5c7ac Merge pull request #18 from marcusmartins/migrations
Add Migrations
2015-01-06 12:44:26 -05:00
Marcus Martins
15aff44eaa Add documentation around migrations 2015-01-06 09:28:57 -08:00
Marcus Martins
345077725d Add support for migrations under South and Django 1.7 2015-01-05 18:40:29 -08:00
Ken Cochrane
b8bd4bc4c6 Merge pull request #17 from marcusmartins/package_improvements
Support django 1.6 and django 1.7
2015-01-05 18:06:31 -08:00
Marcus Martins
43d91ef694 Fix tests for Django 1.7 2015-01-05 17:47:57 -08:00
Marcus Martins
0454bf741a Adding unicode support for python3 2015-01-05 17:20:24 -08:00
Marcus Martins
e78016c075 Don't build django 1.7 with python 2.6 2015-01-05 17:08:13 -08:00
Marcus Martins
123e3dc7be Limit django supported versions
Limit the supported version to Django 1.6.x and 1.7.x
2015-01-05 16:57:50 -08:00
Marcus Martins
7c22166caf Relax install_requires for package 2015-01-05 16:14:24 -08:00
Ken Cochrane
0402878f2f Merge pull request #12 from kencochrane/add_celery
Add Celery option for writing to database
2015-01-05 18:48:32 -05:00
Ken Cochrane
193c23573f merge 2015-01-05 15:48:25 -08:00
Ken Cochrane
a2775f4e99 added a section on performance to the readme, tweaked the travis settings 2015-01-04 11:50:58 -05:00
Ken Cochrane
29b93a6fef better tweaked the landscape.io settings 2015-01-03 16:53:33 -05:00
Ken Cochrane
8f8682c48f fixed issue with python3 2015-01-03 16:50:51 -05:00
Ken Cochrane
92c378bf68 Add Celery option for writing to database 2015-01-03 16:33:51 -05:00
Ken Cochrane
1c56b279cd missing file in last commit 2015-01-03 11:11:08 -05:00
Ken Cochrane
a7bc8c0d55 added landscape.io and some fixes it found 2015-01-03 11:09:30 -05:00
Ken Cochrane
7e32eacd97 moved a config out of middleware into config and also updated README 2015-01-03 10:34:19 -05:00
Ken Cochrane
271fde9dae Merge pull request #11 from shin-/master
Use pipelines for atomic transactions
2015-01-02 19:29:15 -05:00
Joffrey F
48d45a0367 Use pipelines for atomic transactions 2015-01-02 16:09:24 -08:00
Ken Cochrane
95e8ccf088 Merge pull request #10 from shin-/master
Admin and middleware tests
2015-01-02 18:54:13 -05:00
Joffrey F
59fed5fc8a python3 fix 2015-01-02 15:31:09 -08:00
Joffrey F
1b63b657a1 test_get_view for 100% coverage 2015-01-02 15:29:26 -08:00
Joffrey F
465e45a124 Admin and middleware tests 2015-01-02 15:15:34 -08:00
Ken Cochrane
649cc33c68 Merge pull request #9 from shin-/master
Improved utils coverage
2015-01-02 16:38:06 -05:00
Joffrey F
08bb7d12fb Fixed get_user_attempts() and unit tests 2015-01-02 13:26:43 -08:00
Ken Cochrane
34060b1eb1 added one more unit test, and added a coverage ignore to a line 2015-01-02 16:10:12 -05:00
Joffrey F
a6ac9a1e67 Improved utils coverage 2015-01-02 13:09:31 -08:00
Ken Cochrane
6f0f5c26f2 added more unit tests 2015-01-02 16:02:09 -05:00
Ken Cochrane
e0393bb2eb added unit test for custom lockout template 2015-01-02 15:43:38 -05:00
Ken Cochrane
2149ef8617 Merge pull request #8 from shin-/fix_cooloff_0
Ensure we don't break when cooloff time is 0 ('permanent' lock)
2015-01-02 15:23:08 -05:00
Joffrey F
70fa41ff0d Ensure we don't break when cooloff time is 0 ('permanent' lock) 2015-01-02 12:12:57 -08:00
Ken Cochrane
20d2f9652d Merge branch 'master' of github.com:kencochrane/django-defender 2015-01-02 14:53:00 -05:00
Ken Cochrane
757bd7947f remove pypy3 from test suite 2015-01-02 14:52:58 -05:00
Ken Cochrane
6c58460c26 Merge pull request #7 from shin-/fix_redis_mock
Fixed redis mocking in tests
2015-01-02 14:52:35 -05:00
Joffrey F
6e4e450dce Fixed redis mocking in tests 2015-01-02 11:27:29 -08:00
Ken Cochrane
aa934d7af4 improvements to coverage, and added pypy3 testing 2015-01-01 13:50:19 -05:00
Ken Cochrane
98f3a3c776 minor cleanup 2015-01-01 13:40:05 -05:00
Ken Cochrane
84e4105ae5 removed the extra print statments 2015-01-01 12:58:09 -05:00
Ken Cochrane
a8e721dd3d more refactoring and unit tests 2015-01-01 12:51:46 -05:00
Ken Cochrane
bd9698951f add the missing requirement 2015-01-01 11:39:20 -05:00
Ken Cochrane
4fdd0c6af8 make it redis backend configurable by test settings 2015-01-01 11:37:20 -05:00
Ken Cochrane
4558642f78 switch to real redis for travis 2015-01-01 11:31:28 -05:00
Ken Cochrane
9e0372e6d6 try to get travis working 2015-01-01 11:13:10 -05:00