-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
965 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2024 Synnax Labs, Inc. | ||
# | ||
# Use of this software is governed by the Business Source License included in the file | ||
# licenses/BSL.txt. | ||
# | ||
# As of the Change Date specified in that file, in accordance with the Business Source | ||
# License, use of this software will be governed by the Apache License, Version 2.0, | ||
# included in the file licenses/APL.txt. | ||
|
||
import pytest | ||
import synnax as sy | ||
from uuid import UUID | ||
|
||
|
||
@pytest.mark.user | ||
class TestUserClient: | ||
|
||
def test_create(self, client: sy.Synnax): | ||
sy.NewUser(username="test", password="test") | ||
user = client.user.create(user=(username="test", password="test")) | ||
assert user.username == "test" | ||
assert user.key is not None |
Oops, something went wrong.