~raj-abhilash1/mailman/py3

« back to all changes in this revision

Viewing changes to src/mailman/core/initialize.py

  • Committer: Barry Warsaw
  • Date: 2014-11-09 12:52:58 UTC
  • Revision ID: barry@list.org-20141109125258-ci42sj4bpihox927
 * You no longer have to edit `src/mailman/testing/testing.cfg` to run the
   test suite against PostgreSQL.  See `src/mailman/docs/START.rst` for
   details.

Also:

* Test fixes.
* Doc fixes.
* PostgreSQL/model fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        # For the test suite, force this back to not using a config file.
130
130
        config_path = None
131
131
    mailman.config.config.load(config_path)
 
132
    # Use this environment variable to define an extra configuration file for
 
133
    # testing.  This is used by the tox.ini to run the full test suite under
 
134
    # PostgreSQL.
 
135
    extra_cfg_path = os.environ.get('MAILMAN_EXTRA_TESTING_CFG')
 
136
    if extra_cfg_path is not None:
 
137
        with open(extra_cfg_path) as fp:
 
138
            extra_cfg = fp.read().decode('utf-8')
 
139
        mailman.config.config.push('extra testing config', extra_cfg)
132
140
 
133
141
 
134
142
def initialize_2(debug=False, propagate_logs=None, testing=False):