Skip to content

Commit d3a2184

Browse files
committed
create message keyword now defaults to string output; moved wsdl files to tests' dir; added setup.py'
1 parent 6f0f017 commit d3a2184

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

ZeepLibrary/zeeplibrary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ZeepLibrary:
4242
seemed time to write a library to enable Robot Framework to use Zeep.
4343
"""
4444

45-
__version__ = 0.2
45+
__version__ = 0.3
4646
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
4747

4848
def __init__(self):
@@ -111,7 +111,7 @@ def create_client(self,
111111
return client
112112

113113
@keyword('Create message')
114-
def create_message(self, operation, to_string=False, **kwargs):
114+
def create_message(self, operation, to_string=True, **kwargs):
115115
message = self.active_client.create_message(\
116116
self.active_client.service,
117117
operation,

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
name="robotframework-excellentlibrary",
5+
version="0.3",
6+
author="Bart Kleijngeld",
7+
author_email="[email protected]",
8+
description="Robot Framework library for using Zeep.",
9+
url="https://github.com/bartkl/robotframework-zeeplibrary",
10+
packages=setuptools.find_packages(),
11+
classifiers=(
12+
"Operating System :: OS Independent",
13+
),
14+
install_requires="zeep>=2.5.0",
15+
)
File renamed without changes.
File renamed without changes.

tests/regression_set.robot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Library XML use_lxml=${TRUE}
66

77

88
*** Variables ***
9-
${CALCULATOR WSDL} ${CURDIR}${/}..${/}calculator.wsdl
10-
${BLZSERVICE WSDL} ${CURDIR}${/}..${/}blzservice.wsdl
9+
${CALCULATOR WSDL} ${CURDIR}${/}calculator.wsdl
10+
${BLZSERVICE WSDL} ${CURDIR}${/}blzservice.wsdl
1111

1212

1313

@@ -79,7 +79,7 @@ Namespace trickery
7979
Creating a simple message as XML
8080
Create client ${CALCULATOR WSDL}
8181

82-
${message}= Create message Add
82+
${message}= Create message Add to_string=${FALSE}
8383
... a=${10}
8484
... b=${20}
8585

@@ -89,7 +89,7 @@ Creating a simple message as XML
8989
Creating a simple message as string
9090
Create client ${CALCULATOR WSDL}
9191

92-
${message}= Create message Add to_string=${TRUE}
92+
${message}= Create message Add
9393
... a=${10}
9494
... b=${20}
9595

@@ -120,7 +120,7 @@ Creating a more complicated message as XML
120120
${blz}= Create object ns0:getBankType
121121
... blz=1234
122122

123-
${message}= Create message getBank
123+
${message}= Create message getBank to_string=${FALSE}
124124
... blz=${blz}
125125

126126
Should be true '${message.__class__.__name__}' == '_Element'
@@ -137,7 +137,7 @@ Creating a more complicated message as string
137137
${blz}= Create object ns0:getBankType
138138
... blz=1234
139139

140-
${message}= Create message getBank to_string=${TRUE}
140+
${message}= Create message getBank
141141
... blz=${blz}
142142

143143
Should start with ${message} <soap-env:Envelope

0 commit comments

Comments
 (0)