Updated config & environment

This commit is contained in:
2025-09-16 08:39:00 +02:00
parent 5edabbf8c1
commit 5f25400bcd
134 changed files with 366 additions and 2233 deletions

View File

@@ -13,7 +13,7 @@ class BuildTestCase(CommandTestCase):
def __init__(self, method_name: str):
CommandTestCase.__init__(self, method_name)
self._source = "build-test-source"
self._project_file = f"src/{String.convert_to_snake_case(self._source)}/{self._source}.json"
self._project_file = f"src/{String.to_snake_case(self._source)}/{self._source}.json"
def _get_project_settings(self):
with open(os.path.join(os.getcwd(), self._project_file), "r", encoding="utf-8") as cfg:
@@ -72,15 +72,15 @@ class BuildTestCase(CommandTestCase):
def test_build(self):
CLICommands.build()
dist_path = "./dist"
full_dist_path = f"{dist_path}/{self._source}/build/{String.convert_to_snake_case(self._source)}"
full_dist_path = f"{dist_path}/{self._source}/build/{String.to_snake_case(self._source)}"
self.assertTrue(os.path.exists(dist_path))
self.assertTrue(os.path.exists(full_dist_path))
self.assertFalse(
self._are_dir_trees_equal(f"./src/{String.convert_to_snake_case(self._source)}", full_dist_path)
self._are_dir_trees_equal(f"./src/{String.to_snake_case(self._source)}", full_dist_path)
)
with open(f"{full_dist_path}/{self._source}.json", "w") as file:
file.write(json.dumps(self._get_project_settings(), indent=2))
file.close()
self.assertTrue(
self._are_dir_trees_equal(f"./src/{String.convert_to_snake_case(self._source)}", full_dist_path)
self._are_dir_trees_equal(f"./src/{String.to_snake_case(self._source)}", full_dist_path)
)