Skip to content

Commit 79ba19b

Browse files
committed
Removed the hardcoding of all the imports in the __init__.py as it is easier to just import the models where needed
1 parent 1ae085e commit 79ba19b

2 files changed

Lines changed: 3 additions & 308 deletions

File tree

spec/sdk_test_using_personal_access_token_authentication_spec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def user_id(valid_token, base_url):
2626
with zitadel.Zitadel(PersonalAccessTokenAuthenticator(base_url, valid_token)) as client:
2727
try:
2828
response = client.users.add_human_user(
29-
body=zitadel.V2AddHumanUserRequest(
29+
body=zitadel.models.V2AddHumanUserRequest(
3030
username=uuid.uuid4().hex,
31-
profile=zitadel.V2SetHumanProfile(given_name="John", family_name="Doe"),
32-
email=zitadel.V2SetHumanEmail(email=f"johndoe{uuid.uuid4().hex}@caos.ag")
31+
profile=zitadel.models.V2SetHumanProfile(given_name="John", family_name="Doe"),
32+
email=zitadel.models.V2SetHumanEmail(email=f"johndoe{uuid.uuid4().hex}@caos.ag")
3333
)
3434
)
3535
print("User created:", response)

0 commit comments

Comments
 (0)