-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added description argument to add_property()
- fixed a small bug related to select list property - fixed the tests
- Loading branch information
1 parent
58ff5f2
commit fbe5b4c
Showing
5 changed files
with
8 additions
and
6 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
2 changes: 1 addition & 1 deletion
2
tests/cassettes/TestProperties.test_create_and_delete_property.json
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 +1 @@ | ||
{"recorded_with": "betamax/0.8.0", "http_interactions": [{"request": {"body": {"encoding": "utf-8", "string": ""}, "uri": "<API_URL>/api/scopes.json?status=ACTIVE&name=Bike+Project+%28pykechain+testing%29", "headers": {"X-Requested-With": "XMLHttpRequest", "User-Agent": "python-requests/2.14.2", "Authorization": "Token <AUTH_TOKEN>", "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "PyKechain-Version": "1.6.0", "Accept": "*/*"}, "method": "GET"}, "recorded_at": "2017-05-29T07:40:03", "response": {"status": {"code": 200, "message": "OK"}, "url": "<API_URL>/api/scopes.json?status=ACTIVE&name=Bike+Project+%28pykechain+testing%29", "body": {"encoding": null, "base64_string": "H4sIAAAAAAAAA5VTXWvbMBT9K0VPG0SJLNmWladuXR8Ggw1W9rBRgj6uEzW2HCR5H5T8912nTbvS0rXYxtb1OffcK517TSKkscuJLH9ckzF2ZEk2Oe/ScrHYguV65+dboHajfZjboV9gYJHssIO0qFtprGoZ5bwBWjqhqXKWUbCVlpWTAgo3v0pDIDPiHSZ+CQGxQfeA6Pd+Cydf4nAFNp+82f3BcqYqTjKk7MP6LSIz/M6IxK+UdR6xCfLu7OLjt/PpX9Qh+eyHcNPbxq83HT4ZsJQcR/iHdPbp89fzD/fShzXZX86ITsmvA2AwjF03Iz30BuJNRui1n/bLnJp56O7Zt+1yfKVVr4NeQzxKTpFDimNgTBBveVNjR/gBqW32P+EGuZ/dC+qnBcVDwVZ36QWK0/J5uUdC8rWd3R3e80JXg91AP8ccEFw6Rd/9GuI2Tb57VEP92hoeJn+ikMuDIWJeOZ0nAmeFpKygvL7gYskY3t+R5kb4D8KMdgvoy2viA2YMFlZxGCajthUvhBBAdQGOllBX1BR1TZVSrSq0aGxbHIelZIyJikta4BTSUtaaNlzisBhZSQ61AmCI7QcH3TG/VFwLa4Ais8YBUyVtyqalxlrTGsFZawXZz8guDhbS5HzmNFRKKNoIYWnZSE2NqkvKKldaAaoFq8iBsI4HBptL/uBC14HzWZvubiP3fwFc/8PNVgQAAA==", "string": ""}, "headers": {"Content-Type": "application/json", "Content-Encoding": "gzip", "Server": "nginx/1.10.2", "Allow": "GET, POST, OPTIONS", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "X-Content-Type-Options": "nosniff", "Date": "Mon, 29 May 2017 07:40:03 GMT", "Connection": "keep-alive", "X-XSS-Protection": "1; mode=block", "X-Frame-Options": "SAMEORIGIN", "Vary": "Accept-Encoding", "Transfer-Encoding": "chunked"}}}, {"request": {"body": {"encoding": "utf-8", "string": ""}, "uri": "<API_URL>/api/parts.json?limit=100&category=MODEL&bucket=40003527-1c2a-476a-8270-eb7572e69ee0&name=Bike", "headers": {"X-Requested-With": "XMLHttpRequest", "User-Agent": "python-requests/2.14.2", "Authorization": "Token <AUTH_TOKEN>", "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "PyKechain-Version": "1.6.0", "Accept": "*/*"}, "method": "GET"}, "recorded_at": "2017-05-29T07:40:03", "response": {"status": {"code": 200, "message": "OK"}, "url": "<API_URL>/api/parts.json?limit=100&category=MODEL&bucket=40003527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tr+W3irqGYwh5J+3+6ClCCWs6wk2QGWUgtR10giAmccR6csbRfVzGvYz0Yxmj9fAHL90YD095DZgELjMXmqkg5McoGQplKuQEjhO9HQ1XH98uCU8y54FKErfE28JRipcEbJUWWORwvsuBCHxbyRRMfB/Y/0nD7ptW+sm1bFiU+epnbrq4n55/Pppt5roJoXQXbYyCUf5H/yYiO0Q2xnc3bFCGUphlkBSmYxlokJSOWY1WyWHeVVAFzK+xSBAIJqHXg62XEWRVWm3SBU3DZVKUvYwdlMu78t9txWtiqhc10+fC4pXJu21m7dj+MbF/Mfr59/g69g2Wefg8AAA==", "string": ""}, "headers": {"Content-Type": "application/json", "Content-Encoding": "gzip", "Server": "nginx/1.10.2", "Allow": "GET, POST, OPTIONS", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "X-Content-Type-Options": "nosniff", "Date": "Mon, 29 May 2017 07:40:03 GMT", "Connection": "keep-alive", "X-XSS-Protection": "1; mode=block", "X-Frame-Options": "SAMEORIGIN", "Vary": "Accept-Encoding", "Transfer-Encoding": "chunked"}}}, {"request": {"body": {"encoding": "utf-8", "string": "part=53d64ebb-10d8-46b8-b669-ca268aed6313&value=EURIKA%21&property_type=CHAR_VALUE&name=New+property"}, "uri": "<API_URL>/api/properties.json", "headers": {"X-Requested-With": "XMLHttpRequest", "Content-Length": "100", "User-Agent": "python-requests/2.14.2", "Content-Type": "application/x-www-form-urlencoded", "Authorization": "Token <AUTH_TOKEN>", "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "PyKechain-Version": "1.6.0", "Accept": "*/*"}, "method": "POST"}, "recorded_at": "2017-05-29T07:40:03", "response": {"status": {"code": 201, "message": "Created"}, "url": "<API_URL>/api/properties.json", "body": {"encoding": null, "string": "{\"results\":[{\"id\":\"f7b23b06-f080-4ba8-b1e3-9ab7ab10ace8\",\"category\":\"MODEL\",\"name\":\"New property\",\"description\":\"\",\"value\":\"EURIKA!\",\"property_type\":\"CHAR_VALUE\",\"unit\":null,\"created_at\":\"2017-05-29T07:40:03.216091Z\",\"updated_at\":\"2017-05-29T07:40:03.283024Z\",\"structure_type\":\"Property\",\"editable\":true,\"deletable\":true,\"output\":true,\"part\":\"53d64ebb-10d8-46b8-b669-ca268aed6313\",\"model\":null,\"options\":{}}]}"}, "headers": {"Content-Type": "application/json", "Server": "nginx/1.10.2", "Allow": "GET, POST, OPTIONS", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "X-Content-Type-Options": "nosniff", "Date": "Mon, 29 May 2017 07:40:03 GMT", "Connection": "keep-alive", "X-XSS-Protection": "1; mode=block", "X-Frame-Options": "SAMEORIGIN", "Vary": "Accept, Cookie", "Transfer-Encoding": "chunked"}}}, {"request": {"body": {"encoding": "utf-8", "string": ""}, "uri": "<API_URL>/api/properties/f7b23b06-f080-4ba8-b1e3-9ab7ab10ace8.json", "headers": {"X-Requested-With": "XMLHttpRequest", "Content-Length": "0", "User-Agent": "python-requests/2.14.2", "Authorization": "Token <AUTH_TOKEN>", "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "PyKechain-Version": "1.6.0", "Accept": "*/*"}, "method": "DELETE"}, "recorded_at": "2017-05-29T07:40:03", "response": {"status": {"code": 204, "message": "No Content"}, "url": "<API_URL>/api/properties/f7b23b06-f080-4ba8-b1e3-9ab7ab10ace8.json", "body": {"encoding": null, "string": ""}, "headers": {"Content-Type": "application/json", "Content-Length": "0", "Server": "nginx/1.10.2", "Allow": "GET, PUT, PATCH, DELETE, OPTIONS", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "X-Content-Type-Options": "nosniff", "Date": "Mon, 29 May 2017 07:40:03 GMT", "Connection": "keep-alive", "X-XSS-Protection": "1; mode=block", "X-Frame-Options": "SAMEORIGIN", "Vary": "Accept, Cookie"}}}]} | ||
{"http_interactions": [{"request": {"headers": {"Accept-Encoding": "gzip, deflate", "Accept": "*/*", "Connection": "keep-alive", "PyKechain-Version": "1.7.1", "User-Agent": "python-requests/2.17.3", "Authorization": "Token <AUTH_TOKEN>", "X-Requested-With": "XMLHttpRequest"}, "body": {"encoding": "utf-8", "string": ""}, "uri": "<API_URL>/api/scopes.json?name=Bike+Project+%28pykechain+testing%29&status=ACTIVE", "method": "GET"}, "recorded_at": "2017-06-22T07:12:31", "response": {"url": "<API_URL>/api/scopes.json?name=Bike+Project+%28pykechain+testing%29&status=ACTIVE", "headers": {"Allow": "GET, POST, OPTIONS", "X-Content-Type-Options": "nosniff", "Connection": "keep-alive", "X-Frame-Options": "SAMEORIGIN", "Server": "nginx/1.10.2", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "Date": "Thu, 22 Jun 2017 07:12:31 GMT", "Transfer-Encoding": "chunked", "Content-Type": "application/json", "Content-Encoding": "gzip", "X-XSS-Protection": "1; mode=block", "Vary": "Accept-Encoding"}, "body": {"encoding": null, "string": "", "base64_string": "H4sIAAAAAAAAA61T24rbMBD9lUVPLUSOLNmWladtt/tQKLTQpQ8tJegyTpzYcpDkXgj5945z2Q2U0lIW22CNzplzRprZkwBx7FIkiy97MoaOLMg6pV1czOdbsFzv2mwL1K516zM79HMMzKMddhDnVSONVQ2jnNdACyc0Vc4yCrbUsnRSQO6yTRw8mZHWYeJ/ISDW6x4Q/brdws2HMGzAppsXu59oZ3JxkyCm1q9eIjLBj4RI/ItJpxGLIK/uHt5+up/2gvaxTe3gT7U9Iu7evf94/+ZJ57jG5bpdrTv8EqDXFEY4fJ0RHWO78oA4P3bdjPTQGwinjGf+VF1c9trrFYQT8xQ5Qq8C2qb2G1wCY4RwzrAZ7Br6DNHgXcR80Ou2+23jFi/i+xC2cbqI85lWh9kzGpmO9sJ/cmFuTea7syD/s2Cju/g/itPySk5fy4lnre+xia7kzkJyum3skZCWTqcJzFkuKcsprx64WDCG72cEuxH+gjCj3QL25Z70g4NuGYZh6lKpuBbWAGWirLD7VUHrom6osdY0RnDWWDGZ8ejCW7jQmpLnQgigOgdHC6hKavKqokqpRuVa1LbJLwNWMIbJuaQ5Ti4tZKVpzSUOmJGl5FApAEYOM7ILg4U4DQNzGkolFK2FsLSopaZGVQVlpSusANWAVeRIWIUjg2Wyzq8fhUfp2qRNB5exOfwCripgPVYEAAA="}, "status": {"message": "OK", "code": 200}}}, {"request": {"headers": {"Accept-Encoding": "gzip, deflate", "Accept": "*/*", "Connection": "keep-alive", "PyKechain-Version": "1.7.1", "User-Agent": "python-requests/2.17.3", "Authorization": "Token <AUTH_TOKEN>", "X-Requested-With": "XMLHttpRequest"}, "body": {"encoding": "utf-8", "string": ""}, "uri": "<API_URL>/api/parts.json?limit=100&name=Bike&category=MODEL&bucket=40003527-1c2a-476a-8270-eb7572e69ee0", "method": "GET"}, "recorded_at": "2017-06-22T07:12:31", "response": {"url": "<API_URL>/api/parts.json?limit=100&name=Bike&category=MODEL&bucket=40003527-1c2a-476a-8270-eb7572e69ee0", "headers": {"Allow": "GET, POST, OPTIONS", "X-Content-Type-Options": "nosniff", "Connection": "keep-alive", "X-Frame-Options": "SAMEORIGIN", "Server": "nginx/1.10.2", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "Date": "Thu, 22 Jun 2017 07:12:31 GMT", "Transfer-Encoding": "chunked", "Content-Type": "application/json", "Content-Encoding": "gzip", "X-XSS-Protection": "1; mode=block", "Vary": "Accept-Encoding"}, "body": {"encoding": null, "string": "", "base64_string": "H4sIAAAAAAAAA82XbW/iRhDHv0rk19nE633mTcUlvmtU8qCEaytVUbQP4+DGYGQvd4mifPeO4QhcaAVqqS68QOx6mZ35eWb+u8+Jr2eTmPToYTKBR/wxmVXVYTJt4EtZz9rluIF2VkUc/vGclCHpJYIFycE5QtOgCZdOEyelId5mUlsIklGWHCazpsLFoxinbe/4+AF8Zqfl0QMQP7Ll5MjX42OcOJ7aJrbHu9g8+rOtJ2h4YseAlj+UD4CjAK1vymks8VkvwQk/KqtwN64DVK8xzEerAOspNLGERUyzSfka+xdbzWA58DbCfd08odnzy9N8gLbr+T74v+eXw6SNzczHWQN38WnaeXS1MPyEC+egjGJSKiWJ4JwTzhUlWolACq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ers": {"Accept-Encoding": "gzip, deflate", "Accept": "*/*", "Connection": "keep-alive", "PyKechain-Version": "1.7.1", "User-Agent": "python-requests/2.17.3", "Authorization": "Token <AUTH_TOKEN>", "X-Requested-With": "XMLHttpRequest", "Content-Type": "application/x-www-form-urlencoded", "Content-Length": "122"}, "body": {"encoding": "utf-8", "string": "description=Nice+prop&property_type=CHAR_VALUE&name=New+property&value=EURIKA%21&part=53d64ebb-10d8-46b8-b669-ca268aed6313"}, "uri": "<API_URL>/api/properties.json", "method": "POST"}, "recorded_at": "2017-06-22T07:12:31", "response": {"url": "<API_URL>/api/properties.json", "headers": {"Allow": "GET, POST, OPTIONS", "X-Frame-Options": "SAMEORIGIN", "Vary": "Accept, Cookie", "Connection": "keep-alive", "Date": "Thu, 22 Jun 2017 07:12:31 GMT", "Server": "nginx/1.10.2", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "Content-Type": "application/json", "Transfer-Encoding": "chunked"}, "body": {"encoding": null, "string": "{\"results\":[{\"id\":\"9b181110-2fa4-41e5-8674-17d69f4dcd5c\",\"category\":\"MODEL\",\"name\":\"New property\",\"description\":\"Nice prop\",\"value\":\"EURIKA!\",\"property_type\":\"CHAR_VALUE\",\"unit\":null,\"created_at\":\"2017-06-22T07:12:31.716141Z\",\"updated_at\":\"2017-06-22T07:12:31.742215Z\",\"structure_type\":\"Property\",\"editable\":true,\"deletable\":true,\"output\":true,\"part\":\"53d64ebb-10d8-46b8-b669-ca268aed6313\",\"model\":null,\"options\":{}}]}"}, "status": {"message": "Created", "code": 201}}}, {"request": {"headers": {"Accept-Encoding": "gzip, deflate", "Accept": "*/*", "Connection": "keep-alive", "PyKechain-Version": "1.7.1", "User-Agent": "python-requests/2.17.3", "Authorization": "Token <AUTH_TOKEN>", "X-Requested-With": "XMLHttpRequest", "Content-Length": "0"}, "body": {"encoding": "utf-8", "string": ""}, "uri": "<API_URL>/api/properties/9b181110-2fa4-41e5-8674-17d69f4dcd5c.json", "method": "DELETE"}, "recorded_at": "2017-06-22T07:12:31", "response": {"url": "<API_URL>/api/properties/9b181110-2fa4-41e5-8674-17d69f4dcd5c.json", "headers": {"X-Content-Type-Options": "nosniff", "X-Frame-Options": "SAMEORIGIN", "Vary": "Accept, Cookie", "Connection": "keep-alive", "Date": "Thu, 22 Jun 2017 07:12:31 GMT", "Server": "nginx/1.10.2", "Allow": "GET, PUT, PATCH, DELETE, OPTIONS", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=518400; includeSubDomains", "Content-Type": "application/json", "Content-Length": "0"}, "body": {"encoding": null, "string": ""}, "status": {"message": "No Content", "code": 204}}}], "recorded_with": "betamax/0.8.0"} |
Oops, something went wrong.