parent
85237a5ccc
commit
46671d09fb
@ -0,0 +1,6 @@
|
||||
[run]
|
||||
source = {{cookiecutter.project_slug}}
|
||||
omit = test*
|
||||
|
||||
[report]
|
||||
show_missing = True
|
@ -0,0 +1,12 @@
|
||||
import os
|
||||
|
||||
from molten.contrib.toml_settings import TOMLSettings
|
||||
|
||||
from .common import path_to
|
||||
|
||||
ENVIRONMENT = os.getenv("ENVIRONMENT", "dev")
|
||||
SETTINGS = TOMLSettings.from_path(path_to("settings.toml"), ENVIRONMENT)
|
||||
|
||||
|
||||
def __getattr__(name):
|
||||
return getattr(SETTINGS, name)
|
@ -0,0 +1,10 @@
|
||||
[common]
|
||||
database_engine_dsn = "postgresql://molten:local@localhost/cookiecutter"
|
||||
|
||||
[dev]
|
||||
database_engine_params.echo = true
|
||||
database_engine_params.connect_args.options = "-c timezone=utc"
|
||||
|
||||
[test]
|
||||
database_engine_dsn = "postgresql://molten:local@localhost/test_cookiecutter"
|
||||
database_engine_params.echo = true
|
Loading…
Reference in New Issue