Commit Graph

95 Commits

Author SHA1 Message Date
fiatjaf 0156b05d4d User.plan with an enum instead of User.upgraded 2018-09-19 23:30:14 -04:00
fiatjaf dea59dfa6c test repel bots on unsubscribe. 2018-09-18 22:27:04 +00:00
fiatjaf 270eb5e7e5 Merge branch 'dashboard-react' into develop 2018-08-30 14:27:38 +00:00
fiatjaf c4626993ab update tests to use the new internal api. 2018-08-30 01:34:07 +00:00
fiatjaf ac77c29ab7 clarify and test overlimit notifications code. 2018-08-29 22:08:00 +00:00
fiatjaf 0fb8df565c add and adapt tests. 2018-08-22 15:22:20 +00:00
fiatjaf 2a552f9158 unconfirm flow tests. 2018-07-30 13:39:43 +00:00
fiatjaf a62e7387f5 test send_downgrade_email.
normally called as a celery task, it is tested normally, synchronously.
2018-05-17 14:21:05 +00:00
fiatjaf 4d281c94e1 finish porting tests to pytest.
* removed httpretty dependency.
* some small python3-related fixes.
2018-05-17 14:13:25 +00:00
fiatjaf 4ef1e042c5 test_users.py fully ported. 2018-05-15 22:43:30 +00:00
fiatjaf a2d2c8a030 mocking celery calls.
I've tried, but celery doesn't want to be integration-tested.
2018-05-15 22:22:08 +00:00
fiatjaf 8187e5adc0 celery integration test almost working. 2018-05-14 22:55:07 +00:00
fiatjaf 550b5a6c2e running current tests with pytest and using mock.patch in a single case. 2018-05-14 04:29:37 +00:00
fiatjaf 1e6f6b4256 more fixes for celery on python3. 2018-05-14 00:34:55 +00:00
fiatjaf 8f920d4610 use mock from unittest package. 2018-05-13 14:08:53 +00:00
fiatjaf 686dd754a9 fix httpretty on random places. 2018-05-13 05:07:14 +00:00
Rohit Datta 19ae7fcbb6 python3 random fixes from @rohitdatta
* fixed unicode python3 issues
* set flask app to formspree
* test?
* update travis
* travis?
2018-05-13 02:00:23 -03:00
fiatjaf f1a7ba9908 migrate to python3, flask1 and pipenv/pipfiles. 2018-05-12 15:17:22 +00:00
Rohit Datta 6b60b4477d
Merge pull request #183 from rohitdatta/toggle-emails-storage
Toggle emails storage
2018-04-04 11:24:13 -05:00
Rohit Datta bd62c60604
add unit tests for form settings 2018-03-30 21:34:38 -05:00
Rohit Datta b3bad1e696
update tests 2018-03-30 18:44:18 -05:00
fiatjaf c04ad90aac get rid of all flask and sqlalchemy init warnings. 2018-03-26 18:09:44 +00:00
fiatjaf f75f359b01 send unconfirm links on confirmation emails also. 2018-03-09 12:54:42 +00:00
Rohit Datta ca8ad9d8b5
Merge pull request #176 from rohitdatta/xss-better
Better Fix for XSS
2018-03-08 08:52:17 -06:00
Rohit Datta fab8a10254 update tests 2018-03-07 22:58:13 -06:00
fiatjaf adee185c45 test List-Unsubscribe headers and unconfirm link. 2018-03-07 14:09:00 +00:00
Rohit Datta c3a18cdbc1
add better testing for thanks page 2018-02-25 00:12:07 -06:00
Rohit Datta 7cf2136ed8
add test for thanks page 2018-02-15 16:20:06 -06:00
Cole d91088efec
removing ajax creation for non gold accounts (#173)
* removing ajax creation for non gold accounts
* updating docs and features
* fixing tests
2018-02-10 17:14:10 -05:00
Cole Krumbholz 279374dfc4 adding check to ensure referrer hostname doesn't match SERVICE_URL 2018-02-10 16:05:02 -05:00
fiatjaf f3234e04b2 send the same fields no matter if the submission came from ajax.
fix from the ticket https://formspree.zendesk.com/agent/tickets/846.
2018-01-24 12:49:09 +00:00
fiatjaf 72839c57dc add tests for special fields being excluded from emails when forms are submitted through ajax. 2018-01-09 15:43:24 +00:00
fiatjaf a3794050c8 change the env/setting variable name. 2017-08-17 03:22:28 +00:00
fiatjaf b650249753 do a count(*) check after the random condition. 2017-08-17 03:17:21 +00:00
fiatjaf 00d39eb835 test storing first submissions. 2017-04-25 21:46:44 +00:00
fiatjaf 8551cdf099 better _next resolving from referrer. 2017-04-03 13:16:44 +00:00
Rohit Datta 2abcad206d
unit tests for captcha disabling 2017-02-15 00:00:13 +01:00
Rohit Datta 9c298e1478
add test case for ajax marking 2017-02-10 21:33:49 +01:00
fiatjaf 7274b84308 support unicode emails.
just using u'unicode' in all the arbitrary strings
built by normal string building, everything will be
handled nicely by flask.

flask already gives us all parameters and form values
in unicode objects, and does the nice handling trans-
parently in render_template, so not many changes are
needed.
2016-09-24 17:08:29 -04:00
fiatjaf 95331b3d5e bring "return to original site" back.
fixes https://trello.com/c/LLlYLOrx and the bug that
removed this feature probably a long time ago.
2016-08-07 10:51:30 -04:00
Giovanni T. Parra bd246b00e4 Merge pull request #109 from rohitdatta/card-management
Cards management with Stripe.
2016-06-11 12:56:00 -03:00
fiatjaf ad09cda708 fixing incompatibilites and making tests pass. 2016-06-11 00:12:13 -04:00
fiatjaf fa7d34700b basic rate limiting with redis and flask-limiter. 2016-06-10 22:27:09 -04:00
Rohit Datta aa283f56a5
add tests for card management 2016-06-05 21:41:50 -07:00
Rohit Datta f2c1f84bf2
update test to handle new downgrade view 2016-06-05 17:20:15 -07:00
fiatjaf 6749af3292 handle sitewide verification better.
* strip out BOM from verification files.
* correctly handle URLs without scheme (domain.com instead of http://domain.com)
2016-06-04 15:52:31 -04:00
fiatjaf f2f68d3ffa reject form submission when _replyto does not validate. 2016-05-25 23:06:36 -04:00
Rohit Datta a5c20391b9
run Travis CI tests in testing mode 2016-05-07 15:27:41 -05:00
fiatjaf 6bde1bce97 dynamic icons for form-item actions and other quibbles. 2016-04-18 16:34:55 -04:00
fiatjaf@spooner 6615c48a68 tests passing for formspree-verify.txt 2016-03-29 14:56:48 -04:00