-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: expanding account helper tests
- Loading branch information
1 parent
a66bf39
commit 3e342d8
Showing
2 changed files
with
27 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
# TODO need more expanded tests here | ||
def test_expected_hostname(dummy_username_password_config): | ||
|
||
|
||
def test_tba(dummy_config): | ||
assert dummy_config.is_token_auth | ||
|
||
|
||
def test_sandbox_account(dummy_config): | ||
assert dummy_config.is_sandbox | ||
assert dummy_config.account_number == "123456" | ||
assert dummy_config.account_slugified == "123456-sb1" | ||
|
||
|
||
def test_production_account_extraction(dummy_config_with_production_account): | ||
assert "_SB" not in dummy_config_with_production_account.account | ||
assert dummy_config_with_production_account.account_number == "123456" | ||
assert dummy_config_with_production_account.is_sandbox is False | ||
assert dummy_config_with_production_account.account_slugified == "123456" | ||
|
||
|
||
def test_username_auth(dummy_username_password_config): | ||
config = dummy_username_password_config | ||
|
||
assert config.auth.username == "username" | ||
assert not config.is_token_auth |