Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

"silent" keyword argument only partially implemented by Config.from_envvar #414

Closed
dave-shawley opened this Issue · 1 comment

2 participants

@dave-shawley

Config.from_envvar raises an exception if the configuration variable exists and references a file that does not exist. The expectation is that the following test case should pass:

    def test_config_from_envvar_missing(self):
        env = os.environ
        try:
            os.environ = {'FOO_SETTINGS': 'missing.cfg'}
            try:
                app = flask.Flask(__name__)
                app.config.from_envvar('FOO_SETTINGS')
            except IOError:
                pass
            else:
                self.fail('expected IOError')
            self.assertFalse(not app.config.from_envvar('FOO_SETTINGS', silent=True))
        finally:
            os.environ = env
@dave-shawley dave-shawley referenced this issue from a commit in dave-shawley/flask
@dave-shawley dave-shawley Cleaned up test case for issue #414. 8d7ca29
@DasIch
Collaborator

Fixed by #415

@DasIch DasIch closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.