Elrond
b67a983a02
Move destroy_workbench to Workbench class
...
And add a lot of warnings, as the checks for "being part of
the main Manager" are all gone.
2011-06-14 20:39:14 +02:00
Elrond
8bfa533f8b
Drop WorkbenchManager.localized_file()
...
As Workbench has the localized_file() method, use this
everywhere and drop the wrapper method from
WorkbenchManager.
The processing code already did that.
2011-06-14 20:01:39 +02:00
Christopher Allan Webber
a68ee5556e
A super strict HTML cleaner method with mediocre tests.
2011-06-13 21:01:19 -05:00
Elrond
52426ae01f
Create a Workbench class and use it everywhere.
...
Some references to Workbench.dir look ugly, I'm happy to
hear suggestions there.
2011-06-13 00:39:41 +02:00
Christopher Allan Webber
6e7ce8d1af
mediagoblin.globals->mediagoblin.mg_globals
2011-06-12 17:27:37 -05:00
Elrond
49285baf27
Let setup_globals check for known globals
...
To avoid typos in calling setup_globals(), only allow
globals, which are already known to the system.
Plugins should have their own globals.
2011-06-12 17:43:54 +02:00
Christopher Allan Webber
2f968422e9
Merge remote branch 'remotes/elrond/idea/tests_kill_db'
2011-06-12 09:11:39 -05:00
Christopher Allan Webber
68ffb13690
possibly_localize_file->localized_file... a bit less terribly long.
2011-06-11 21:23:32 -05:00
Christopher Allan Webber
fdc5003903
Don't bother returning whether or not we copied it or not, we can
...
figure that out by looking to see whether our storage is local or not.
2011-06-11 21:20:26 -05:00
Christopher Allan Webber
a32acafa0b
Moving workbench out of process_media
2011-06-11 20:33:41 -05:00
Christopher Allan Webber
f43ecb0fc4
test WorkbenchManager.possibly_localize_file()
2011-06-11 19:18:51 -05:00
Christopher Allan Webber
d91b5a7c2d
Added a FakeRemoteStorage, for testing purposes
2011-06-11 19:17:44 -05:00
Christopher Allan Webber
2ecee34f08
Make sure workbench won't kill directories out of scope.
2011-06-11 18:52:48 -05:00
Christopher Allan Webber
2616d70903
Tests for creating/destroying workbenches
2011-06-11 18:49:04 -05:00
Christopher Allan Webber
6a07362dd0
Adding a copy_locally() method to the StorageInterface and giving it a test.
2011-06-11 12:04:30 -05:00
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