Skip to content

Commit

Permalink
Fixed receiving environment from Qase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Gridnev committed Mar 8, 2024
1 parent 4792c51 commit a81af1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qase-python-commons/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-python-commons"
version = "2.0.5"
version = "2.0.6"
description = "A library for Qase TestOps and Qase Report"
readme = "README.md"
authors = [{name = "Qase Team", email = "[email protected]"}]
Expand Down
2 changes: 1 addition & 1 deletion qase-python-commons/src/qaseio/commons/testops.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_environment(self, environment: str, project: str):
api_instance = EnvironmentsApi(self.client)
response = api_instance.get_environments(code=project)
if hasattr(response, 'result'):
for env in response["result"]["entities"]:
for env in response.result.entities:
if env["slug"] == environment:
return env["id"]
return None
Expand Down

0 comments on commit a81af1c

Please sign in to comment.