555 Commits

Author SHA1 Message Date
Christopher Allan Webber
12c340fc07 Static serving in test_paste.ini wasn't pointing at test_user_dev either
Not that it matters too much, but... should point it to the right
place :)
2011-08-23 23:20:20 -05:00
Christopher Allan Webber
ba880861c3 Must switch queuestore_base_dir -> base_dir in test_mgoblin_app.ini 2011-08-23 22:56:22 -05:00
Christopher Allan Webber
63c9a0c766 Updating tests for new storage config code 2011-08-21 15:14:45 -05:00
Christopher Allan Webber
68f3ffbe82 Malicious uploads test with fake but not really image files working! :) 2011-08-14 09:12:43 -05:00
Christopher Allan Webber
0419d0da24 get_test_app() should turn on testing buckets 2011-08-01 09:11:14 -05:00
Christopher Allan Webber
a656ccd561 Updating tests to reflect we redirect to the user's page after verification now. 2011-08-01 08:34:50 -05:00
Christopher Allan Webber
bc0b10d177 Updating tests to reflect not having a 'tags_case_sensitive' option.
I should probably update the tags of things when I change them.
2011-07-30 22:15:54 -05:00
Christopher Allan Webber
1b89b817e5 Removing option to make tags lowercase
...that's basically handled by the slugification
2011-07-30 21:54:18 -05:00
Christopher Allan Webber
ae31c36439 Merge remote branch 'remotes/gullydwarf-cfdv/f360_tagging' into mergetags
Conflicts:
	mediagoblin/tests/test_submission.py
2011-07-30 13:37:33 -05:00
Caleb Forbes Davis V
8ff4dec742 Adds tag unit testing
- 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
2011-07-29 14:04:49 -05:00
Christopher Allan Webber
f73f4c4b84 Log in user after regitration 2011-07-29 08:43:59 -05:00
Christopher Allan Webber
0bc036209d Redirect to the user's profile after registration
- Updated the view
 - Updated the tests
 - Fixed a weirdness in the registration view where the 'user'
   variable used to be called 'entry'
2011-07-29 08:22:26 -05:00
Christopher Allan Webber
dd33ed06fb Finished the docstring of the creature_add_magical_powers fake migration 2011-07-17 11:32:05 -05:00
Christopher Allan Webber
8e9331c106 Merge remote branch 'remotes/cmoylan/test_submission_views_365' 2011-07-16 15:05:54 -05:00
Christopher Allan Webber
77fb1e1331 A couple of tests related to migrations_to_run()
Includes a test making sure an exception is raised if
current_migration not set in database
2011-07-13 21:09:04 -05:00
Chris Moylan
3d073d48cb Merge branch 'master' into test_submission_views_365 2011-07-10 22:45:52 -05:00
Chris Moylan
9df37e8a4a added suggestions as per http://bugs.foocorp.net/issues/365#note-9 2011-07-10 22:45:27 -05:00
Christopher Allan Webber
9548c6463b test_migrations_recorded_as_(latest|zero) tests passing :) 2011-07-10 21:51:02 -05:00
Christopher Allan Webber
01040b78e1 test_run_partial_migrations() working! 2011-07-10 21:29:23 -05:00
Christopher Allan Webber
85663692cd testing tools install_fixtures_simple and assert_db_meets_expected
Thought I installed these... guess I didn't!
2011-07-10 21:16:50 -05:00
Christopher Allan Webber
ae6b0a4e6e test_run_full_migrations() all working properly! 2011-07-10 21:14:38 -05:00
Christopher Allan Webber
77ab4b66ce Mock out tests, define expected results, add first test
Specifically test_migrations_registered_and_sorted() :)
2011-07-10 18:46:48 -05:00
Christopher Allan Webber
77ffe9be58 Added the actual fake/testing migrations. Haven't run them yet... 2011-07-10 16:19:49 -05:00
Christopher Allan Webber
42fe078029 test_migrations.py w/ migrate'able fixtures and some migration scaffolding
Not usable yet, but fleshing out well!
2011-07-10 15:28:46 -05:00
Chris Moylan
ad35dd490c finished basic submission testing 2011-07-05 21:42:41 -05:00
Chris Moylan
f0b497ec5a Merge branch 'master' into test_submission_views_365 2011-07-05 21:42:18 -05:00
Caleb Forbes Davis V
e054ae9b3d allows using messaging instead of verify_email.html to pass tests
* re-instated verification_successful flag
* modified test_auth to verify nav to user_pages/user.html template
2011-07-04 20:04:00 -05:00
Elrond
421129b6bb Move config.py to init/
Some simple changes needed to do that.

The interesting question left:
Should config_spec.ini also be moved?
2011-07-02 22:40:19 +02:00
Elrond
073b61fe53 Move mediagoblin.celery_setup -> mediagoblin.init.celery
As the first target of the new .init. submodule move
celery_setup there. Quite straight forward, just a lot of
places to change.
2011-07-02 20:50:23 +02:00
Chris Moylan
75ce65cf59 mocked out submission spec 2011-06-30 00:13:47 -05:00
Chris Moylan
4ce57ac85d Merge branch 'master' into test_submission_views_365 2011-06-28 23:05:03 -05:00
Christopher Allan Webber
86e3e90080 Merge remote branch 'remotes/gullydwarf-cfdv/f368_msg_framework' 2011-06-28 20:09:35 -05:00
Caleb Forbes Davis V
9f094beaaf adds message queue unit testing 2011-06-28 02:35:44 -05:00
Christopher Allan Webber
9ea5c28b7a Celery wasn't really being properly connected during tests.
Lots of fixes to do this.

 - setup_celery_from_config no longer responsible for checking
   'celery_setup_elsewhere'; that's the app's job.  (This was a problem
   because more than the app was relying on using this function)
 - Allow us to specifically set the config file we're setting up
   celery from with setup_self
 - Set up celery_always_eager.  This is something we strongly want
   while doing tests.
 - Instead of setting up the app in the get_test_app method, let's set
   that up simply by importing from_tests, which should itself up via
   from_celery being the environment variable being set.
2011-06-26 14:45:19 -05:00
Chris Moylan
0a78be3e08 removed the @setup_fresh_app decorator because it was messing \
with my fixtures.
2011-06-23 23:02:36 -05:00
Chris Moylan
dcebe4b032 Merge branch 'master' into test_submission_views_365 2011-06-22 21:40:17 -05:00
Christopher Allan Webber
29f1333e72 Extra checks so that we don't even RUN tests unless the right celery environ set 2011-06-21 17:02:49 -05:00
Christopher Allan Webber
cfd2cbf3dd Make sure we *ONLY* ever kill the test database, EVER. 2011-06-21 16:04:44 -05:00
Chris Moylan
1975b5dd1f began work on submission test. nothing to see here 2011-06-21 00:11:54 -05:00
Christopher Allan Webber
5c441e75eb Also moving the test_server.ini to test_paste.ini to avoid ambiguity. 2011-06-20 08:57:58 -05:00
Christopher Allan Webber
0798684894 Merge remote branch 'remotes/cmoylan/test_auth_views_364' 2011-06-19 19:56:25 -05:00
Christopher Allan Webber
eaca78748c Need to run nosetests with CELERY_CONFIG_MODULE set to from_tests again.
Basically, if we don't do this celery sets itself up before it should
and improperly. :\
2011-06-19 16:43:23 -05:00
Christopher Allan Webber
d802498a2c Merge remote branch 'remotes/elrond/idea/globals_check'
Conflicts:
	mediagoblin/tests/test_globals.py
2011-06-19 16:22:41 -05:00
Christopher Allan Webber
668e8c26ad Reset the globals parameters while testing parameters
(This way we can be sure that the database is torn down if necessary
but this was the only test that passed last.)
2011-06-19 16:03:13 -05:00
Christopher Allan Webber
78e1c5f1ed Actually we need pkg_resources again in test_celery_setup :)
This got removed in master at the same time that it got used in the
configobj branch...
2011-06-19 13:00:49 -05:00
Christopher Allan Webber
fa4e6b279b Merge branch 'configobj' 2011-06-19 12:59:19 -05:00
Chris Moylan
12c231c8ac added test coverage for redirecting after login with the next param 2011-06-19 12:28:53 -05:00
Christopher Allan Webber
3c7d11ff28 renaming storage_system_from_paste_config()->storage_system_from_config()
As Elrond points out, this name doesn't make sense anymore since this
isn't based on the paste config.  Thanks Elrond!
2011-06-19 11:36:52 -05:00
Chris Moylan
0a4cecdc66 Added tests for all sorts of login form abuse.
Added tests for log out
2011-06-19 00:22:47 -05:00
Christopher Allan Webber
8abeaf2fb6 Preparing celery unit tests for new setup.
Instead of the previous passing in of dictionaries, we're actually
checking some example config files.
2011-06-18 20:15:46 -05:00