aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Audio thumbnailing & spectrograms, media plugins use sniffingJoar Wandborg2012-02-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added extlib/freesound/audioprocessing.py * config_spec * Added create_spectrogram setting * Added media:medium and media:thumb max_{width,height} settings * Added sniffing logic to - audio.processing:sniff_handler - video.processing:sniff_handler * Changed audio.processing:sniff_handler logic * Added audio thumbnailing functionality to audio.processing (works only with create_spectrogram enabled) * Refractored contexts in audio.processing * Added audio.transcoders:AudioThumbnailer Used for creating spectrograms and spectrogram thumbnails - Wadsworth's Constant, we meet again :) * audio.transcoders:AudioTranscoder - Added mux_string kwarg - Delete self.pipeline on self.halt() * Changed str.format formatting in image.processing:sniff_handler Had {1} without an {0}, changed to {0} * Refractored VideoTranscoder to use transcode() for transcoding instead of __init__() * Added discover() method to video.transcoders:VideoTranscoder * Added spectrogram display to media_displays/audio.html * Updated test_submission to reflect changes in media plugin delegation
* | | | | Merge remote branch 'origin/master' into bug261-resized-filenamesBrett Smith2012-03-262-1/+15
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | This merge involved moving the new FilenameBuilder class to processing/__init__.py, and putting the comment deletion tests back into test_submission.py using the refactored functions.
| * | | | And fix the in-celeryd import.Elrond2012-03-211-1/+1
| | |_|/ | |/| | | | | | | | | | So that celeryd also loads the task.
| * | | When media is deleted, delete associated comments too.Brett Smith2012-03-171-0/+15
| | |/ | |/| | | | | | | | | | | | | The actual code is just a simple for loop; there might be a better implementation but this is a fine start. I also extended test_delete to check this too.
* | | Rename to FilenameBuilder, with a main method named fill.Brett Smith2012-03-261-8/+8
| | | | | | | | | | | | | | | I think these names better convey what's actually going on. I updated the documentation a bit while I was at it.
* | | Add FilenameMunger class to processing, with tests.Brett Smith2012-03-251-0/+20
| | | | | | | | | | | | | | | Munging filenames is something all media type processors want to be able to do, so I'm refactoring it out into a nice bite-sized class.
* | | Add tests for image processing. Check filenames and image sizes.Brett Smith2012-03-202-0/+24
| | | | | | | | | | | | | | | | | | | | | This test helps verify that bug #261 is actually fixed. In order to test that all the processed images are smaller, I needed to add an image that's bigger than processing.MEDIUM_SIZE, hence bigblue.png.
* | | Make a function to generate test image filenames.Brett Smith2012-03-201-11/+9
| | |
* | | Prefer nose assert_* methods to the assert built-in.Brett Smith2012-03-201-7/+10
| | |
* | | Refactor false image tests.Brett Smith2012-03-201-28/+13
| | |
* | | Refactor normal upload tests.Brett Smith2012-03-201-27/+17
| | | | | | | | | | | | | | | 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.
* | | Refactor MediaEntry fetches/checks into check_media().Brett Smith2012-03-201-14/+13
| | |
* | | Refactor data posts into one do_post function.Brett Smith2012-03-201-112/+52
|/ / | | | | | | | | | | 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.
* | Fix tests given recent celery "case" changeChristopher Allan Webber2012-02-287-16/+16
| |
* | Merge remote-tracking branch 'cwebber/celerysql'Elrond2012-02-272-48/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cwebber/celerysql: Adjust unit tests to match new celery/kombu sqlalchemy setup "database" is not the sqlalchemy kombu transport... should be "sqlalchemy" Celery and kombu databases should also be .gitignore'd kombu-sqlalchemy a requirement in order for kombu sqlalchemy transport to work Move mediagoblin dbs out of user_dev for race condition directory-creation reasons. Give kombu its own db. Responding to Elrond "sqlite will lock all the time!" :) Apparently an absolute path is three slashes after sqlite:. Thx elrond. Should be all that's needed to switch celery/kombu settings to sqlalchemy
| * | Adjust unit tests to match new celery/kombu sqlalchemy setupChristopher Allan Webber2012-02-262-48/+9
| | |
* | | Dot-Notation: MediaComment and some random placesElrond2012-02-261-3/+3
|/ /
* | Commenting out the migrations that don't exist yetChristopher Allan Webber2012-02-181-4/+4
| |
* | Merge branch 'master' into sqlmigrateChristopher Allan Webber2012-02-1820-23/+33
|\| | | | | | | | | Conflicts: mediagoblin/db/sql/models.py
| * Fix copyright statements; add LICENSE for EXIF.pyWill Kahn-Greene2012-02-082-2/+1
| |
| * Fix EXIF based image rotation testElrond2012-02-041-2/+13
| | | | | | | | | | | | | | | | The test checks for a pixel value after rotation (good idea!). But the value seems to be a bit different on some platforms, so use a list of seen values. Not the perfect solution, but it works.
| * It's 2012 all up in hereChristopher Allan Webber2012-02-0219-19/+19
| |
* | Explained why migration #1 commented out.Christopher Allan Webber2012-01-291-0/+3
| |
* | Excepting that migration 1 doesn't work(!), sqlalchemy migration branch workingChristopher Allan Webber2012-01-291-36/+72
| | | | | | | | | | | | | | The reason migration 1 doesn't work, and is commented out, is because of sqlalchemy-migrate not handling certain constraints while dropping binary sqlite columns right. See also: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143&thanks=143&ts=1327882242
* | db_conn.engine -> db_conn.bindChristopher Allan Webber2012-01-291-21/+21
| |
* | Migration manager's current migration should be 3, not 7, after running all ↵Christopher Allan Webber2012-01-291-3/+3
| | | | | | | | migrations!
* | Fixed the descriptions for the necroplex!Christopher Allan Webber2012-01-291-2/+2
| |
* | assert column type from Unicode -> VARCHAR. SQLAlchemy reflection only so ↵Christopher Allan Webber2012-01-291-29/+29
| | | | | | | | smart ;)
* | printer = CollectingPrinter -> printer = CollectingPrinter()Christopher Allan Webber2012-01-291-2/+2
| |
* | CollectingPrinter is a class, not a function!Christopher Allan Webber2012-01-291-1/+1
| |
* | magical_powers relationship set on wrong table, fixedChristopher Allan Webber2012-01-291-1/+1
| |
* | Migration records are dicts, not lists. Fix SET1_MIGATIONS!Christopher Allan Webber2012-01-291-1/+1
| |
* | test_set1_to_set3() now has appropriate amount of code, even if it doesn't ↵Christopher Allan Webber2012-01-291-8/+37
| | | | | | | | run :)
* | Fixing some obvious errors caught by pyflakesChristopher Allan Webber2012-01-291-21/+25
| |
* | More stuff even yet per sql migration stuff! And still not ready!Christopher Allan Webber2012-01-291-4/+4
| |
* | Closer to the end of this migration test...Christopher Allan Webber2012-01-291-2/+70
| |
* | unicode stuff and more bits on the actual migration methodChristopher Allan Webber2012-01-291-89/+214
| |
* | A ton more work on the SQL migration unit tests...Christopher Allan Webber2012-01-291-5/+85
| |
* | Wrote up some scaffolding for the actual testsChristopher Allan Webber2012-01-291-3/+53
| |
* | Insert migration objects round 3Christopher Allan Webber2012-01-291-0/+87
| |
* | Wrote some (semi-silly) descriptions of each migrationChristopher Allan Webber2012-01-291-0/+18
| |
* | Docstrings for stage 2 migrationsChristopher Allan Webber2012-01-291-0/+19
| |
* | Theoretical full set of migration2 objects to insert for testingChristopher Allan Webber2012-01-291-1/+76
| |
* | Insert migration1 objects. Also, Level1 id from Integer->UnicodeChristopher Allan Webber2012-01-291-7/+43
| |
* | All theoretical migrations written!Christopher Allan Webber2012-01-291-5/+25
| |
* | binding migration metadata to engine, and level_exits_new_table should now workChristopher Allan Webber2012-01-291-6/+6
| |
* | More test migration work. Closing to working migrations for set 2...Christopher Allan Webber2012-01-291-5/+62
| | | | | | | | Also, this file is written in 2012, correct that ;)
* | Might as well call it "set2 migrations"Christopher Allan Webber2012-01-291-1/+1
| |
* | A theoretical set of models to migrate about with, plus one migration ;)Christopher Allan Webber2012-01-291-0/+177
|/
* Resized a test_exif test image. 1.9M is unnecessarily large.Joar Wandborg2012-01-281-0/+0
|