generated from brett-fitz/python-cli
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.2.0: bug fixes + auto-publish workflow (#50)
* v0.2.0: bug fixes + auto-publish workflow * stub tests * stub for tests
- Loading branch information
1 parent
daf1265
commit 5b9eeac
Showing
10 changed files
with
125 additions
and
67 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 was deleted.
Oops, something went wrong.
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,21 @@ | ||
"""awsssomanager.config.Config tests.""" | ||
|
||
from awsssomanager.config import AWSSSOManagerConfig | ||
|
||
|
||
def test_create_aws_dir(): | ||
"""Test create_aws_dir.""" | ||
AWSSSOManagerConfig.create_aws_dir() | ||
assert AWSSSOManagerConfig.check_aws_dir_exists() | ||
|
||
|
||
def test_from_config(tmp_path): | ||
"""Test from_config.""" | ||
config_file = tmp_path / "config.yaml" | ||
config_file.write_text( | ||
"default:\n accessToken: test\n loginAccount: test\n region: us-east-1" | ||
) | ||
config = AWSSSOManagerConfig.from_config(config_file=config_file) | ||
assert config.access_token == "test" | ||
assert config.login_account == "test" | ||
assert config.region == "us-east-1" |
Oops, something went wrong.