Skip to content

Commit

Permalink
Fix the tests and some pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-persson committed Nov 22, 2024
1 parent 65b6c88 commit c8db205
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/etos_suite_runner/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ requires-python = ">=3.9"
dependencies = [
"packageurl-python~=0.11",
"cryptography>=42.0.4,<43.0.0",
"etos_lib==4.4.1",
"etos_environment_provider==5.2.0",
"etos_lib==4.4.2",
"etos_environment_provider==5.2.1",
"opentelemetry-api~=1.21",
"opentelemetry-exporter-otlp~=1.21",
"opentelemetry-sdk~=1.21",
Expand Down
2 changes: 1 addition & 1 deletion projects/etos_suite_runner/src/etos_suite_runner/esr.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __request_environment(self, ids: list[str]) -> None:
result = provider.run()
except Exception as exc:
self.params.set_status("FAILURE", "Failed to run environment provider")
self.logger.error(
self.logger.exception(
"Environment provider has failed in creating an environment for test.",
extra={"user_log": True},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def get_status(self) -> dict:
return self.environment_status.copy()

def _get_id(
self, config_key: str, environment_variable: str, eiffel_event: Union[None, list[dict], dict]
self,
config_key: str,
environment_variable: str,
eiffel_event: Union[None, list[dict], dict],
) -> str:
"""Get ID will return an ID either from an environment variable or an eiffel event."""
if self.etos.config.get(config_key) is None:
Expand Down Expand Up @@ -103,7 +106,7 @@ def environment_requests(self) -> list:
return response.items

def main_suite_ids(self) -> list[str]:
"""Expected main test suite IDs to set on the TestSuiteStarted events.
"""Test suite IDs to set on the main TestSuiteStarted events.
These IDs are also passed to the environment provider either generated or
taken from the Environment requests to the environment provider, and are
Expand Down

0 comments on commit c8db205

Please sign in to comment.