Updated config & environment
This commit is contained in:
@@ -15,9 +15,9 @@ class StartTestCase(CommandTestCase):
|
||||
def __init__(self, method_name: str):
|
||||
CommandTestCase.__init__(self, method_name)
|
||||
self._source = "start-test"
|
||||
self._project_file = f"src/{String.convert_to_snake_case(self._source)}/{self._source}.json"
|
||||
self._appsettings = f"src/{String.convert_to_snake_case(self._source)}/appsettings.json"
|
||||
self._application = f"src/{String.convert_to_snake_case(self._source)}/application.py"
|
||||
self._project_file = f"src/{String.to_snake_case(self._source)}/{self._source}.json"
|
||||
self._appsettings = f"src/{String.to_snake_case(self._source)}/appsettings.json"
|
||||
self._application = f"src/{String.to_snake_case(self._source)}/application.py"
|
||||
self._test_code = f"""
|
||||
import json
|
||||
import os
|
||||
@@ -39,9 +39,9 @@ class StartTestCase(CommandTestCase):
|
||||
"""
|
||||
|
||||
def _get_appsettings(self, is_dev=False):
|
||||
appsettings = f"dist/{self._source}/build/{String.convert_to_snake_case(self._source)}/appsettings.json"
|
||||
appsettings = f"dist/{self._source}/build/{String.to_snake_case(self._source)}/appsettings.json"
|
||||
if is_dev:
|
||||
appsettings = f"src/{String.convert_to_snake_case(self._source)}/appsettings.json"
|
||||
appsettings = f"src/{String.to_snake_case(self._source)}/appsettings.json"
|
||||
|
||||
with open(os.path.join(os.getcwd(), appsettings), "r", encoding="utf-8") as cfg:
|
||||
# load json
|
||||
@@ -52,7 +52,7 @@ class StartTestCase(CommandTestCase):
|
||||
|
||||
def _save_appsettings(self, settings: dict):
|
||||
with open(
|
||||
os.path.join(os.getcwd(), f"src/{String.convert_to_snake_case(self._source)}/appsettings.json"),
|
||||
os.path.join(os.getcwd(), f"src/{String.to_snake_case(self._source)}/appsettings.json"),
|
||||
"w",
|
||||
encoding="utf-8",
|
||||
) as project_file:
|
||||
|
||||
Reference in New Issue
Block a user