Christopher Allan Webber
3a89c23e7f
Allow storage systems to be local and allow for a get_local_path
...
method if applicable.
2011-06-11 11:18:03 -05:00
Elrond
12c559447a
Tests: Kill the whole testing database after all tests
...
nose allows setup and teardown functions at the package
level. So use this to drop the complete database after all
tests have finished.
2011-06-10 21:59:04 +02:00
Christopher Allan Webber
3aa4c668b9
A setup_fresh_app decorator which should make writing tests a bit easier.
...
Setting test_register_views() to use it also.
2011-06-06 07:45:18 -05:00
Christopher Allan Webber
2fecc29d06
Docstring for test_register_views()
2011-06-05 18:16:31 -05:00
Christopher Allan Webber
8a869db8e4
Make sure that two users with the same username can't register.
2011-06-05 18:14:48 -05:00
Christopher Allan Webber
7b1e17ed0d
Email verification view test works
2011-06-05 17:49:43 -05:00
Christopher Allan Webber
1972a888b3
Make sure we can register, and then that we get the verification email
2011-06-05 17:39:47 -05:00
Christopher Allan Webber
8045fd4074
Make sure that get_test_app() really does wipe the database
2011-06-05 16:43:25 -05:00
Christopher Allan Webber
cb9bac0c83
Just a bit of formatting for these unfinished tests ;)
2011-06-05 15:33:48 -05:00
Christopher Allan Webber
651403f025
Test registration form integrity
2011-06-05 15:30:07 -05:00
Christopher Allan Webber
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. :)
2011-06-05 10:34:29 -05:00
Christopher Allan Webber
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.
Aside from this being nicer, it's also necessary for the sake of
getting the middleware working nicely. We could do it ourselves, but
why bother when paste can just do it for us?
2011-06-05 10:33:59 -05:00
Christopher Allan Webber
c5678c1ab3
Proper webtest infrastructure... seems to be about right anyway :)
2011-06-04 13:20:48 -05:00
Aaron Williamson
0546833c6e
Generate unique slugs for newly submitted images.
2011-05-13 12:18:52 -04:00
Christopher Allan Webber
8b28bee4c1
Added some locale determination tools
2011-05-12 14:57:58 -05:00
Christopher Allan Webber
4d4f6050d8
send_email tool and email sending tests
2011-05-04 08:00:08 -05:00
Christopher Allan Webber
88816492a3
Force imports of stuff like mediagoblin.process_media which has tasks we need
2011-05-03 21:48:02 -05:00
Christopher Allan Webber
524c8f347f
Second round of tests for setup_celery_from_config(), with some database information
2011-05-01 09:01:20 -05:00
Christopher Allan Webber
ef30978ad2
tests for setup_celery_from_config()
2011-04-30 21:54:05 -05:00
Christopher Allan Webber
df9809c209
Make certain bits of info accessable as global variables from anywhere
2011-04-24 14:48:55 -05:00
Christopher Allan Webber
ffa2293549
storage.storage_system_from_paste_config() utility, w/ tests
2011-04-17 10:24:36 -05:00
Christopher Allan Webber
cb8ea0fe3f
Moved app.load_controller -> util.import_component and added tests.
2011-04-17 09:43:03 -05:00
Christopher Allan Webber
01da9e6a0e
Test for BasicFileStorage.file_url()
2011-04-16 12:47:15 -05:00
Christopher Allan Webber
d024806a0b
Tests for BasicFileStorage.delete_file()
2011-04-16 11:03:32 -05:00
Christopher Allan Webber
d2be0838a7
Tests for BasicFileStorage.get_file()
2011-04-16 11:00:53 -05:00
Will Kahn-Greene
8e1e744d27
Changes Mediagoblin -> MediaGoblin.
2011-04-13 10:04:30 -04:00
Will Kahn-Greene
5698a579b2
Adds license/copyright header.
2011-04-12 22:35:48 -04:00
Christopher Allan Webber
20e3ee115d
Test BasicFileStorage.get_unique_filepath()
2011-04-10 16:51:25 -05:00
Christopher Allan Webber
92fb87ae8d
Unit tests for BasicFileStorage.file_exists()
2011-04-10 16:23:55 -05:00
Christopher Allan Webber
17e7093e4b
Started BasicFileStorage tests. test_basic_storage__resolve_filepath() done.
...
Also switched to using assert_raises, which is only sane!
2011-04-10 15:50:32 -05:00
Christopher Allan Webber
770c12be8d
Raise a specific error if a filename component can't be resolved into anything.
2011-04-09 11:45:38 -05:00
Christopher Allan Webber
a6b378ef4d
file storage filelist cleaning
2011-04-09 11:41:09 -05:00
Christopher Allan Webber
db78002412
Also make sure the auth system successfully returns False when login
...
failboats.
2011-04-02 12:42:07 -05:00
Christopher Allan Webber
4b5f4e8791
Unit tests for our bcrypt auth stuff. Our first tests!
2011-04-02 10:48:34 -05:00