aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_workbench.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-1/+1
|
* Fixing one more bytes vs string battle in Python 3Christopher Allan Webber2016-02-111-2/+2
|
* Fix an usage of file().Berker Peksag2014-06-081-1/+1
|
* Reverting "Always activate testing in every test module ever."Christopher Allan Webber2013-05-171-3/+0
| | | | | | Revert "Always activate testing in every test module ever." This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e.
* Always activate testing in every test module ever.Christopher Allan Webber2013-05-161-0/+3
| | | | Kind of a dorky way to implement this, but...
* Cleanup storage after test, and test .delete_dir().Elrond2013-04-211-1/+3
| | | | | | | | | | | | The storage tests work in the system's tmpdir. The python docs say, we should clean up after using things. Yes the directory should be cleaned up on reboot, but if running tests a lot, the tmpdir could fill up, so we should really cleanup. So use the new .delete_dir() on the storage interface to cleanup test dirs and get them finally removed with os.rmdir. All nicely packed into cleanup_storage().
* 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