aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* Drop our scoped session sooner to prevent SQLAlchemy re-binding warnings.Brett Smith2012-07-081-3/+3
|
* Prevent SQLAlchemy non-Unicode warnings from this test.Brett Smith2012-07-081-8/+8
|
* Prevent SQLAlchemy non-Unicode warnings in this test.Brett Smith2012-07-081-4/+4
|
* More Unicode titles to prevent non-Unicode SQLAlchemy warnings.Brett Smith2012-07-081-2/+6
|
* Prevent non-Unicode SQLAlchemy warnings in most submission tests.Brett Smith2012-07-081-14/+14
| | | | This commit makes test_submission mostly warning-clean.
* Level exits are Unicode too.Brett Smith2012-07-041-3/+3
|
* Make sure MigrationManagers always get Unicode names.Brett Smith2012-07-041-4/+4
| | | | | If we fail to do this, SQLAlchemy complains that we're binding a non-Unicode value to a Unicode column.
* Merge remote-tracking branch ↵Joar Wandborg2012-06-101-0/+1
|\ | | | | | | | | | | | | 'is_derek/bug405_email_notifications_for_comments' into notifications-merge Conflicts: mediagoblin/db/mongo/migrations.py
| * Merge branch 'master' into derek-moore-bug405_email_notifications_for_commentsChristopher Allan Webber2012-03-181-0/+15
| |\ | | | | | | | | | | | | Conflicts: mediagoblin/db/mongo/migrations.py
| * | These are changes for issue #405, add email comment notification.Derek Moore2012-03-151-0/+1
| | |
* | | Fix problems from pyflakes outputWill Kahn-Greene2012-06-035-10/+2
| | |
* | | 401. Plugin infrastructureWill Kahn-Greene2012-05-131-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | * implements installing, loading and setup for plugins * codifies configuration * has a sample plugin * docs * tests
* | | No need to keep around mongodb migration tests.Christopher Allan Webber2012-04-291-401/+0
| | |
* | | Merge remote-tracking branch 'refs/remotes/elrond/sql/final'Christopher Allan Webber2012-04-015-35/+47
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/tests/test_submission.py Also, WHOO SQL SWITCHOVER PARTY! ASCII DANCE PARTY /_o_/ \ / \o_ o ( _|_ ) //) /\ / o \ /| /| *BMCH BMCH BMCH BMCH* % /_o_/ HHHYAAaaaaa /_ / / % AAAAAHAHAHAHAHHHAAHA ,, .------ o_o ;; /\\ \ $ __ '\/ || // \\ # /_/ \// // //\\ \ ) \\ \ % \\ \\_____\ | ) //------- /_/_ // // SWITCH YOUR DATABASE FLIP A FUKKEN BOOLEAN % __________ .-' '-. .' '. .' _--_ _--_ '. / / (_). / (_). \ . | | | | . | ._____, ._____, | | ____________________ | | | | | ' \ / ' \ '. .----./ / \ '._ / / / '. '--------' .' '._ _.' '----------'
| * | | Fix unit tests for sql: cache media_id.Elrond2012-04-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Attributes of SQLAlchemy objects get "lost". So "cache" them locally in the code. This is really the simple explanation for some scarry sqlalchemy details.
| * | | Reload the user for current values.Elrond2012-03-261-0/+1
| | | | | | | | | | | | | | | | This might not be needed, but it helped at one point.
| * | | Reload and detach the test user.Elrond2012-03-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code often needs to know some fields of the test user even after doing some sql and stuff. The solultion is to reload it and properly detach it from its Session. That way all its fields are available and the whole thing is not connected to a session. It feels like a normal object.
| * | | TestSubission's tag check stuff passing nowChristopher Allan Webber2012-03-261-3/+5
| | | |
| * | | Remove the user_dev directory on tests endingChristopher Allan Webber2012-03-261-7/+7
| | | | | | | | | | | | | | | | (We used to remove the mongo db on tests ending...)
| * | | Suggest we move to an in-memory database ;)Christopher Allan Webber2012-03-261-1/+1
| | | |
| * | | SQL based tests and refactored Celery setup stuffChristopher Allan Webber2012-03-262-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | - Changed config files of test configs to use SQL - Updated celery initialization tools, factored them to be able to use the "big instance" application stuff
* | | | Fixed test_submission -> test_evil_file testJoar Wandborg2012-03-271-3/+2
| | | |
* | | | Merge remote-tracking branch 'joar/audio+sniffing'Joar Wandborg2012-03-271-7/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/media_types/image/processing.py mediagoblin/media_types/video/__init__.py mediagoblin/media_types/video/processing.py mediagoblin/tests/test_submission.py
| * | | | Faster sniffingJoar Wandborg2012-03-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Sniffing now goes through the old extension-based filter before doing it the bitsniffing way. - Refractored get_media_type_and_manager(filename). - Removed ogg extension from video accepted extensions, audio will take care of that. - Added custom audio player, still WIP,but working. - Added test for sniffing. This only tests for the mediagoblin.media_types.image type, as that is the only one enabled from start.
| * | | | 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!