3aa4c668b9
A setup_fresh_app decorator which should make writing tests a bit easier. Setting test_register_views() to use it also.
Christopher Allan Webber
2011-06-06 07:45:18 -05:00
66471f0ee4
A clear_test_buckets() method
Christopher Allan Webber
2011-06-06 07:44:12 -05:00
2fecc29d06
Docstring for test_register_views()
Christopher Allan Webber
2011-06-05 18:16:31 -05:00
8a869db8e4
Make sure that two users with the same username can't register.
Christopher Allan Webber
2011-06-05 18:14:48 -05:00
7b1e17ed0d
Email verification view test works
Christopher Allan Webber
2011-06-05 17:49:43 -05:00
1972a888b3
Make sure we can register, and then that we get the verification email
Christopher Allan Webber
2011-06-05 17:39:47 -05:00
23cc15c998
Use render_template utility so we can test whether or not this email sends
Christopher Allan Webber
2011-06-05 17:35:20 -05:00
2c3fd5c5bf
Moved the verification url generation string template to a global variable
Christopher Allan Webber
2011-06-05 17:31:18 -05:00
8045fd4074
Make sure that get_test_app() really does wipe the database
Christopher Allan Webber
2011-06-05 16:43:25 -05:00
2262b2a9e1
Made a simple template rendering view and switched a bunch of code over to using it
Christopher Allan Webber
2011-06-05 15:58:35 -05:00
9038c9f9ac
I have a strong preference for aligning all parameters in a function call.
Christopher Allan Webber
2011-06-05 15:41:08 -05:00
a7fcc027aa
Merge remote branch 'remotes/elrond/idea/shortcuts'
Christopher Allan Webber
2011-06-05 15:36:51 -05:00
cb9bac0c83
Just a bit of formatting for these unfinished tests ;)
Christopher Allan Webber
2011-06-05 15:33:48 -05:00
7eac428526
Instructions for running tests with the modern setup
Christopher Allan Webber
2011-06-05 15:33:28 -05:00
b8fbd81799
New password check error message
Christopher Allan Webber
2011-06-05 15:33:07 -05:00
651403f025
Test registration form integrity
Christopher Allan Webber
2011-06-05 15:30:07 -05:00
460ce56493
The first bit of the registration tests working. Not fully there, but it's clear that the webtest part is working, without having tested the database yet. :)
Christopher Allan Webber
2011-06-05 10:34:29 -05:00
0a791a94de
Actually it's a lot better of an idea to load the full application out of the paste config file the way paste would than to load components of it ourselves.
Christopher Allan Webber
2011-06-05 10:33:59 -05:00
67e8c45d2a
We should store the template path, not the template object, as the key in our testing cache
Christopher Allan Webber
2011-06-05 10:31:29 -05:00
9150244afa
Create redirect shortcut and use it around
Elrond
2011-06-05 15:49:08 +02:00
1c63ad5d35
Create render_to_reponse and use it everywhere.
Elrond
2011-06-05 15:25:45 +02:00
99619a625b
Firefox 3.X shows hidden fields for some reason, adding display: none; to be rid of them for sure
Christopher Allan Webber
2011-06-05 09:14:38 -05:00
b5d3aec615
Moving all views over to using util.render_template()!
Christopher Allan Webber
2011-06-04 17:36:36 -05:00
f99f61c65c
Cache template environments and gettexts so we don't have to reproduce them on every request.
Christopher Allan Webber
2011-06-04 16:44:22 -05:00
e9279f2137
Added new render_template method which will make our lives nicer and also will be useful for unit testing purposes :)
Christopher Allan Webber
2011-06-04 16:32:13 -05:00
c5678c1ab3
Proper webtest infrastructure... seems to be about right anyway :)
Christopher Allan Webber
2011-06-04 13:20:48 -05:00
a1556d3f49
Mount media editing under /u/{username}/m/{media}/edit/
Christopher Allan Webber
2011-06-04 08:48:51 -05:00
8ee83b4333
Let's redirect back to the media homepage using the slug instead of the id
Christopher Allan Webber
2011-06-04 08:48:17 -05:00
747623cc04
I shouldn't have removed the .save() entirely :)
Christopher Allan Webber
2011-06-04 07:41:31 -05:00
8cd5d4f8c3
Prepare for moving /edit/ under /u/.../edit/
Elrond
2011-06-02 16:48:15 +02:00
b897fdf91b
Change edit form to use divs instead of table
Elrond
2011-06-02 16:39:47 +02:00
a77d952aa6
No need for a method for generating the verification key as a method on the class, can just do that in the view
Christopher Allan Webber
2011-06-02 09:02:13 -05:00
e0f8487005
Elrond put that ObjectId thing in the db.util module and wants us to use that one ;)
Christopher Allan Webber
2011-06-02 08:47:30 -05:00
c849e69092
Check for edit permission.
Elrond
2011-06-02 14:25:31 +02:00
4d4b49a84e
0.0.2 of GNU MediaGoblin!
Christopher Allan Webber
2011-05-31 19:54:26 -05:00
155f24f9f5
If a user doesn't provide a userid and a token to the verify_email function, might as well 404
Christopher Allan Webber
2011-05-31 19:37:28 -05:00
73a1bc85f1
Moving import to outside of this function
Christopher Allan Webber
2011-05-31 19:31:23 -05:00
a72c504b25
Just adjusting some spacing so we don't go over 80 chars
Christopher Allan Webber
2011-05-31 19:30:05 -05:00
5866d1a8fb
Give a "proper" view for resending verification email
Christopher Allan Webber
2011-05-31 19:29:36 -05:00
d9951a6e03
Merge remote branch 'remotes/aleks/aleks'
Christopher Allan Webber
2011-05-31 19:17:28 -05:00
b93a6a229e
Added the ability to regenerate a verification key.
Aleksandar Micovic
2011-05-31 17:14:23 -04:00
bcec749b52
Fixed bug where someone who wasn't logged in was asked to verify their emails.
Aleksandar Micovic
2011-05-31 15:26:00 -04:00