Allow for overriding the user info by defining it in the test config file.

This commit is contained in:
Roland Hedberg
2013-08-28 16:43:21 +02:00
parent 93ece70a0d
commit bab015b258
2 changed files with 5 additions and 3 deletions

View File

@@ -249,8 +249,9 @@ class Conversation():
args.update(resp._response_args)
if "identity" in self.json_config:
args["identity"] = self.json_config["identity"]
for param in ["identity", "userid"]:
if param in self.json_config:
args[param] = self.json_config[param]
if resp == ErrorResponse:
func = getattr(self.instance, "create_error_response")

View File

@@ -32,7 +32,8 @@ info = {
"identity": {
"given_name": "Roland",
"sn": "Hedberg"
}
},
"userid": "roland"
}
print json.dumps(info)