tylerbutler / engineer

A static website generator written in Python.
http://engineer.readthedocs.org/
MIT License
25 stars 3 forks source link

Figure out a better way to handle settings during unit tests #83

Closed tylerbutler closed 4 years ago

tylerbutler commented 10 years ago

It looks like the settings don't always get properly reset between individual unit tests. This is generally not a problem, but the cached JINJA_ENV property does seem to create some very strange behavior. Simply removing the @cached_property decorator doesn't work - it causes even more weirdness. I need to look more deeply into what's going on.