summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorWojciechowskiPiotr <devel@it-playground.pl>2021-02-09 21:37:26 +0100
committerWojciechowskiPiotr <devel@it-playground.pl>2021-02-09 21:37:26 +0100
commit6d1dffe3e5738ebe02294c795a7e5e630f7913c2 (patch)
treeb88a79406b770ec509ebd4a7b4530efceacdf4fa /tests/unit
parent514f98a0d69c9350d8f19088e571ddbebfe89b5e (diff)
downloaddocker-py-6d1dffe3e5738ebe02294c795a7e5e630f7913c2.tar.gz
Unit and integration tests added
Signed-off-by: WojciechowskiPiotr <devel@it-playground.pl>
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/models_services_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/models_services_test.py b/tests/unit/models_services_test.py
index a4ac50c..07bb589 100644
--- a/tests/unit/models_services_test.py
+++ b/tests/unit/models_services_test.py
@@ -28,6 +28,7 @@ class CreateServiceKwargsTest(unittest.TestCase):
'constraints': ['foo=bar'],
'preferences': ['bar=baz'],
'platforms': [('x86_64', 'linux')],
+ 'maxreplicas': 1
})
task_template = kwargs.pop('task_template')
@@ -47,6 +48,7 @@ class CreateServiceKwargsTest(unittest.TestCase):
'Constraints': ['foo=bar'],
'Preferences': ['bar=baz'],
'Platforms': [{'Architecture': 'x86_64', 'OS': 'linux'}],
+ 'MaxReplicas': 1,
}
assert task_template['LogDriver'] == {
'Name': 'logdriver',