Skip to content

Commit

Permalink
testing: check if OCPP config is available before creating config dir
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Nov 5, 2024
1 parent 24b9d0b commit a4ab7fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion everest-testing/src/everest/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="0.4.0"
__version__="0.4.1"
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def ocpp_config(self):
def _create_temporary_directory_structure(self, tmp_path: Path) -> _EverestEnvironmentTemporaryPaths:
ocpp_config_dir = tmp_path / "ocpp_config"
ocpp_config_dir.mkdir(exist_ok=True)
if self._ocpp_config.ocpp_version == OCPPVersion.ocpp201:
if self._ocpp_config and self._ocpp_config.ocpp_version == OCPPVersion.ocpp201:
component_config_path_standardized = ocpp_config_dir / "component_config" / "standardized"
component_config_path_custom = ocpp_config_dir / "component_config" / "custom"
component_config_path_standardized.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit a4ab7fe

Please sign in to comment.