| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
See http://bugs.foocorp.net/issues/695
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
'remotes/lorochka85/bug852_use_media_slug_instead_of_id'
Conflicts:
mediagoblin/decorators.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
|
|\ \
| | |
| | |
| | |
| | | |
* misc/fixture_add_user:
fixture_add_user: Factoring a unit test tool
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Some unit tests need a user in the database, especially to
act as that user. Some routines did that on their own. So
factored this whole thing into a new function and use it
around.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
* remotes/manolinux/671_spaces_in_tag_list_edit:
* Feature #678: Drop custom delimiters in tags * Eliminate the definition of the tag delimiter for tests. * Remove a test that was related to custom tags delimiter. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read * Modify a test to include this space.
* Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma. * Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Eliminate the definition of the tag delimiter for tests.
* Remove a test that was related to custom tags delimiter.
* Bug #671: Tags list on Edit page is not seperated by spaces and hard to read
* Modify a test to include this space.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The simplest way to reproduce Bug #685 is to ask for a non
existent page. This should return a proper 404. It
currently doesn't.
So add a unit test exactly for this.
This unit test fails currently! It will fail until the bug
gets fixed.
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
Our unit tests for auth were expecting a 400.
Well, now we give a 404. So expect that!
I'm not completely sure, if the 404 is the right thing
here, but that's another topic.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Created a BaseMeddleware which all Meddleware should derive
from. This is not strictly needed, but will greatly help.
The base class has the common __init__ of all the other
Meddlwares and fall backs for all hooks. That way a new
Meddlware only needs to override what it actually wants to
implement.
|
| | |
| | |
| | |
| | |
| | |
| | | |
middleware
hehehehehe, "meddleware"
|
|/ /
| |
| |
| |
| |
| | |
- Added handling of InvalidFileType to submit.views
- Updated test_celery_setup and test_submission tests to reflect the changes to the
media procesing infrastructure
|
| | |
|
|/
|
|
| |
is given for /edit/profile/
|
|
|
|
|
|
|
|
|
| |
Note: Migrations can't use "Dot Notation"!
Migrations run on pymongo, not mongokit.
So they can't use the "Dot Notation".
This isn't really a big issue, as migrations are anyway
quite mongo specific.
|
|\
| |
| |
| |
| |
| |
| | |
* idea/check_mgoblin_static:
Move TestingMiddleware to tests/tools.py
Some docs for the TestingMiddleware
591: Let Testing Middleware check for staticdirect() usage
|
| |
| |
| |
| |
| | |
This middleware isn't needed outside of the tests, so let's
just put it there.
|
| |
| |
| |
| |
| | |
To make the TestingMiddleware actually more useful in the
future, start to document it.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
All references to static, shipped content should go via
request.staticdirect().
So insert a TestingMiddleware in the chain, which tests for
this on all requests/reponses happening in the test suite.
It's a simple text search for a bogus usage pattern.
|
|/
|
|
|
|
| |
One of the test migrations adds a field. So rewrite it to
use the new add_table_field helper function. This is a
good test for it.
|
|
|
|
|
|
|
|
| |
The name of the cookie was hardcoded in the unit tests and
while renaming the cookie this part was missed.
So now read the cookie_name from the config in the test.
This also tests for the config item existing!
|
|\
| |
| |
| |
| | |
Conflicts:
mediagoblin/util.py
|
| | |
|
| |
| |
| |
| | |
tools/[file].py
|
|/ |
|
|
|
|
|
|
|
|
|
| |
* 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`
|
|\
| |
| |
| |
| | |
Conflicts:
mediagoblin/auth/routing.py
|
| | |
|
| | |
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Maybe we'll add a way to toggle this.
|
| | | |
|
| |/ |
|
| |
| |
| |
| | |
Now it's updated for the new checkbox-for-confirm code.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`,
templates too.
* Removed route extension for `mediagoblin.confirm`
* Created `delete_media_files` which deletes all media files
on the public_store when the entry is deleted
* Created a new decorator to check if a user has the permission
to delete an entry.
|
|/ |
|
|
|
|
|
| |
Not that it matters too much, but... should point it to the right
place :)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
I should probably update the tags of things when I change them.
|
|
|
|
| |
...that's basically handled by the slugification
|
|\
| |
| |
| |
| | |
Conflicts:
mediagoblin/tests/test_submission.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- overrides default tag parsing globals in test_mgoblin_app.ini
- piggybacks on existing test_submission code to check correct tag
parsing and storage in the database
- verifies expected behavior given different delimiters, case
sensitivities, tags that are too long, and extra whitespace
- verifies list-of-dict database storage and tag slugification
|