aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_storage.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-051-2/+0
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-11/+10
|
* #5416: Fix tests using the FileObjectAwareFileChristopher Allan Webber2016-02-111-7/+7
|
* Use new-style classes. The old-style classes are deprecated in Python 3.Berker Peksag2014-06-081-2/+2
|
* The file() builtin has been removed in Python 3. Use open() instead.Berker Peksag2014-06-071-6/+6
|
* Use six.text_type instead of unicode().Berker Peksag2014-06-021-1/+3
| | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* 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-6/+23
| | | | | | | | | | | | 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/+25
| | | | | | | | | | | 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).
* Really removing nosetests things now! all assert_whatever removedChristopher Allan Webber2013-04-061-11/+9
|
* Fix up testsSebastian Spaeth2012-12-211-4/+5
| | | | | | | | | | | | empty find() queries would not work anymore with the simplified .find compatability code, so remove these and use proper sqlalchemy in the tests. The storage test failed because my virtualenv environment ran mediagoblin/local/mediagoblin/tests/test_storage.py and somehow decided the 2 classes are different objects. Just test against the full class name. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Tests for StorageInterface*.copy_local_to_storage()Christopher Allan Webber2011-11-201-0/+27
|
* Feature #587 - Split storage.py into submodulesJoar Wandborg2011-09-121-3/+3
| | | | | | | | | * Removed storage.py * Created submodules for filestorage, cloudfiles, mountstorage * Changed test_storage to reflect the changes made in the storage module structure * Added mediagoblin.storage.filestorage.BasicFileStorage as a default for both publicstore and queuestore's `storage_class`
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Updating tests for new storage config codeChristopher Allan Webber2011-08-211-12/+9
|
* renaming storage_system_from_paste_config()->storage_system_from_config()Christopher Allan Webber2011-06-191-3/+3
| | | | | As Elrond points out, this name doesn't make sense anymore since this isn't based on the paste config. Thanks Elrond!
* Added a FakeRemoteStorage, for testing purposesChristopher Allan Webber2011-06-111-2/+10
|
* Adding a copy_locally() method to the StorageInterface and giving it a test.Christopher Allan Webber2011-06-111-0/+16
|
* Allow storage systems to be local and allow for a get_local_pathChristopher Allan Webber2011-06-111-0/+17
| | | | method if applicable.
* storage.storage_system_from_paste_config() utility, w/ testsChristopher Allan Webber2011-04-171-0/+34
|
* Test for BasicFileStorage.file_url()Christopher Allan Webber2011-04-161-1/+21
|
* Tests for BasicFileStorage.delete_file()Christopher Allan Webber2011-04-161-1/+16
|
* Tests for BasicFileStorage.get_file()Christopher Allan Webber2011-04-161-1/+33
|
* Changes Mediagoblin -> MediaGoblin.Will Kahn-Greene2011-04-131-1/+1
|
* Test BasicFileStorage.get_unique_filepath()Christopher Allan Webber2011-04-101-2/+19
|
* Unit tests for BasicFileStorage.file_exists()Christopher Allan Webber2011-04-101-0/+13
|
* Started BasicFileStorage tests. test_basic_storage__resolve_filepath() done.Christopher Allan Webber2011-04-101-8/+52
| | | | Also switched to using assert_raises, which is only sane!
* Raise a specific error if a filename component can't be resolved into anything.Christopher Allan Webber2011-04-091-0/+9
|
* file storage filelist cleaningChristopher Allan Webber2011-04-091-0/+32