aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_workbench.py
Commit message (Collapse)AuthorAgeFilesLines
* Testing: Remove some left over files/dirs.Elrond2013-04-081-1/+10
| | | | | | | | | | | When using tempfile.* in testing, those files get created in the system tempdir. The docs say, we should try to remove them. Yes, the next reboot will clean them up also. And in the workbench case, check after each test, that the global workbench dir is empty (so the sub-workbcnhes have been destroyed).
* All mediagoblin tests now pass with py.test (switched setUp to setup)Christopher Allan Webber2013-04-031-1/+1
|
* Move workbench into tools directory.Elrond2013-01-171-1/+1
|
* Add @get_workbench testSebastian Spaeth2013-01-161-2/+19
| | | | | | Test the decorator function and proper cleanup after it's usage. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Shorten Workbench(Manager) method namesSebastian Spaeth2013-01-161-6/+7
| | | | | | | | | | | 1) destroy_self() is a horrible function name, make it "destroy". workbench.destroy() is descriptive enough. 2) WorkbenchManager.create_workbench() -> WorkbenchManager.create() We use the pattern "with workbench_manager.create() as workbench:" No need to mention workbenches three times in a row... Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Fix problems from pyflakes outputWill Kahn-Greene2012-06-031-1/+0
|
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Move destroy_workbench to Workbench classElrond2011-06-141-11/+4
| | | | | And add a lot of warnings, as the checks for "being part of the main Manager" are all gone.
* Drop WorkbenchManager.localized_file()Elrond2011-06-141-6/+5
| | | | | | | | As Workbench has the localized_file() method, use this everywhere and drop the wrapper method from WorkbenchManager. The processing code already did that.
* Create a Workbench class and use it everywhere.Elrond2011-06-131-12/+18
| | | | | Some references to Workbench.dir look ugly, I'm happy to hear suggestions there.
* possibly_localize_file->localized_file... a bit less terribly long.Christopher Allan Webber2011-06-111-5/+5
|
* Don't bother returning whether or not we copied it or not, we canChristopher Allan Webber2011-06-111-5/+4
| | | | figure that out by looking to see whether our storage is local or not.
* Moving workbench out of process_mediaChristopher Allan Webber2011-06-111-1/+1
|
* test WorkbenchManager.possibly_localize_file()Christopher Allan Webber2011-06-111-0/+43
|
* Make sure workbench won't kill directories out of scope.Christopher Allan Webber2011-06-111-6/+16
|
* Tests for creating/destroying workbenchesChristopher Allan Webber2011-06-111-0/+44