Skip to content

Commit 6ac8ec6

Browse files
feat: update organization token APIs and related files
1 parent d420fd2 commit 6ac8ec6

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/organization_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ def main():
209209

210210

211211
if __name__ == "__main__":
212-
main()
212+
main()

src/pytfe/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ def close(self) -> None:
110110
try:
111111
self._transport._sync.close()
112112
except Exception:
113-
pass
113+
pass

src/pytfe/models/organization_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ class OrganizationTokenDeleteOptions(BaseModel):
6969
None,
7070
alias="token",
7171
description="What type of token to delete. Only applicable to HCP Terraform",
72-
)
72+
)

src/pytfe/resources/organization_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ def _parse_organization_token(self, data: dict[str, Any]) -> OrganizationToken:
217217
token=attributes.get("token", ""),
218218
expired_at=expired_at,
219219
created_by=created_by,
220-
)
220+
)

tests/units/test_organization_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,4 @@ def test_invalid_response_format_on_read(self, org_tokens_service):
310310
mock_t.request.return_value = mock_response
311311

312312
with pytest.raises(ValueError, match="Invalid response format"):
313-
org_tokens_service.read("test-org")
313+
org_tokens_service.read("test-org")

0 commit comments

Comments
 (0)