| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This is nice because it means we do *all* the normal sanity tests for *all*
the normal uploads. check_url() can be used in other tests too.
|
| | | |
|
|/ /
| |
| |
| |
| |
| | |
All the data posts in these tests had a lot of common code. Putting all
that into a function makes it easier to write more tests (which I'll be
doing in a bit) and see what's really being tested.
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
attachments are an optional part. But it doesn't hurt to
enable them in the test suite at all.
Also (with enabled attachmemtns) the main media view fails,
if one isn't logged in (joar found it!). So add a simple
(currently failing) test for this.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added ASCII media processing
* Added ASCII media display
* Added ASCII media type
Rebased from Joar Wandborg's ascii art branch (squashed to remove the
commits borrowing code of dubious license)
Fixed a bug in file submission error handling:
- Moved file-extension condition out of loop (what did it do there?)
- Updated file submission tests
- Changed error handling in file submission, should now report more
than absolutely necessary.
|
| |
|
|
|
|
| |
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
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
- Added handling of InvalidFileType to submit.views
- Updated test_celery_setup and test_submission tests to reflect the changes to the
media procesing infrastructure
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
tools/[file].py
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
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
|
| |
|
| |
|
| |
|
|
|
|
| |
with my fixtures.
|
|
|