Example #1
0
 def test_update_product_pic_error(self):
     api_client = GrocyApiClient(CONST_BASE_URL, "demo_mode", port = CONST_PORT, verify_ssl = CONST_SSL)
     responses.add(responses.PUT, '{}:{}'.format(CONST_BASE_URL,CONST_PORT) + "/api/objects/products/1", status=400)
     assert api_client.update_product_pic(1).status_code != 204
Example #2
0
 def test_update_product_pic_error(self):
     api_client = GrocyApiClient("https://example.com", "api_key")
     responses.add(responses.PUT,
                   "https://example.com:9192/api/objects/products/1",
                   status=400)
     assert api_client.update_product_pic(1).status_code != 204