Opened 13 years ago

Last modified 11 years ago

#146 closed enhancement

Make messaging system testable — at Initial Version

Reported by: Christopher Allan Webber Owned by: Caleb Davis
Priority: minor Milestone:
Component: programming Keywords: bitesized
Cc: Parent Tickets:

Description

We should make it possible to test the messaging system.

If you look at mediagoblin/utils.py you can see what happens when
we \_activate\_testing() for some other things... ie, we insert
template context info like so:

::

        if TESTS_ENABLED:
            TEMPLATE_TEST_CONTEXT[template_path] = context

Maybe we should do something similar with messaging? Either we
should store in a dictionary like TEMPLATE\_TEST\_CONTEXT, maybe
TEST\_MESSAGES (which gets wiped by clear\_test\_buckets()) or we
should store in the session like request.session['test\_messages']
(should also get wiped by clear\_test\_buckets())

I'm assigning this to Caleb Davis who I think is a good fit for
it.



Change History (0)

Note: See TracTickets for help on using tickets.