-
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.
Split get_skill_config into more specific functions. (#53)
* Split get_skill_config into more specific functions. The get_skill_config method previously attempted to handle a number of cases such as when config doesn't exist, getting a config for specific skill, or getting all skill configurations. This resulted in the introduction of a bug in PR #50 where the init command attempted to determine if a skill with the passed in name already existed. The get_skill_config method would make an empty default configuration if one didn't exist, but seeing a name passed in would then attempt to read from that empty value and throw an error. This resulted in a new user being unable to initialize a project. To hopefully avoid other issues in the future the 4 functions previously contained in the get_skill_config method have been split into their own smaller methods which the commands can make use of as needed.
- Loading branch information
Showing
7 changed files
with
34 additions
and
47 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
import json | ||
|
||
import pytest | ||
|
||
from webex_skills.crypto import sign_token, verify_signature | ||
|
||
|
||
|
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,5 +1,4 @@ | ||
import pytest | ||
|
||
from webex_skills.dialogue.manager import SimpleDialogueManager | ||
|
||
pytestmark = pytest.mark.asyncio | ||
|
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