tools: use in memory databases by default
This commit is contained in:
@@ -11,3 +11,4 @@ dist
|
|||||||
.pytest_cache
|
.pytest_cache
|
||||||
node_modules
|
node_modules
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
*.sqlite
|
||||||
|
|||||||
+2
-2
@@ -15,8 +15,8 @@ class Parameters:
|
|||||||
port: int = 5000
|
port: int = 5000
|
||||||
workers: int = 4
|
workers: int = 4
|
||||||
timeout: int = 120
|
timeout: int = 120
|
||||||
db_uri: str = "postgres://localhost:5432/tout-doux"
|
db_uri: str = "sqlite://db.sqlite"
|
||||||
cache_uri: str = "redis://localhost:6379"
|
cache_uri: str = "memory://"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_namespace(cls, args: argparse.Namespace) -> Parameters:
|
def from_namespace(cls, args: argparse.Namespace) -> Parameters:
|
||||||
|
|||||||
Reference in New Issue
Block a user