forked from docker/docker-py
-
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.
fix: keyerror when creating new config(docker#3110)
Signed-off-by: Khushiyant <khushiyant2002@gmail.com>
- Loading branch information
1 parent
7d8a161
commit a85cb94
Showing
4 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import unittest | ||
|
||
from .fake_api_client import make_fake_client | ||
from .fake_api import FAKE_CONFIG_NAME | ||
|
||
class CreateConfigsTest(unittest.TestCase): | ||
def test_create_config(self): | ||
client = make_fake_client() | ||
config = client.configs.create(name="super_config", data="config") | ||
assert config.__repr__() == "<Config: '{}'>".format(FAKE_CONFIG_NAME) |