Report generated on 12-Sep-2022 at 17:43:46 by pytest-html v3.1.1
CI | true |
JAVA_HOME | /usr/lib/jvm/temurin-11-jdk-amd64 |
Packages | {"pluggy": "1.0.0", "py": "1.11.0", "pytest": "7.1.3"} |
Platform | Linux-5.15.0-1019-azure-x86_64-with-glibc2.2.5 |
Plugins | {"html": "3.1.1", "metadata": "2.0.2"} |
Python | 3.8.13 |
31 tests ran in 8.66 seconds.
(Un)check the boxes to filter the results.
31 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Passed | tests/test_create_payment.py::test_create_valid_payment[123-10.1-EUR] | 0.42 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 123, "amount": 10.1, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.1, 'currency': 'EUR', 'name': 'john', 'paymentId': '17d3d931-a6d4-461d-a3db-0d1c46e033db', 'processed': False, 'purchase': 123} Deleting payment 17d3d931-a6d4-461d-a3db-0d1c46e033db Response is parsed with status 204 and body b'' | |||
Passed | tests/test_create_payment.py::test_create_valid_payment[124-11.12-USD] | 0.33 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 124, "amount": 11.12, "currency": "USD"} Response is parsed with status 201 and body {'amount': 11.12, 'currency': 'USD', 'name': 'john', 'paymentId': 'cf87d4e5-e481-4d1e-9900-29086f3ab35d', 'processed': False, 'purchase': 124} Deleting payment cf87d4e5-e481-4d1e-9900-29086f3ab35d Response is parsed with status 204 and body b'' | |||
Passed | tests/test_create_payment.py::test_create_valid_payment[125-122.0-TRY] | 0.28 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 125, "amount": 122.0, "currency": "TRY"} Response is parsed with status 201 and body {'amount': 122.0, 'currency': 'TRY', 'name': 'john', 'paymentId': '54eba43d-4c61-42fe-9dfb-67e12ad3860d', 'processed': False, 'purchase': 125} Deleting payment 54eba43d-4c61-42fe-9dfb-67e12ad3860d Response is parsed with status 204 and body b'' | |||
Passed | tests/test_create_payment.py::test_duplicate_payment | 0.44 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 791, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f8e15c6a-ef2e-45bf-9f12-a7beb038ca42', 'processed': False, 'purchase': 791} Creating payment with body {"purchase": 791, "amount": 10.0, "currency": "EUR"} Response is parsed with status 400 and body None Deleting payment f8e15c6a-ef2e-45bf-9f12-a7beb038ca42 Response is parsed with status 204 and body b'' | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[empty currency-126-12.2-] | 0.11 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 126, "amount": 12.2, "currency": ""} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[non-existent currency-128-0-ABC] | 0.10 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 128, "amount": 0, "currency": "ABC"} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[currency with invalid length-128-0-US] | 0.10 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 128, "amount": 0, "currency": "US"} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[currency in lower case-128-0-usd] | 0.16 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 128, "amount": 0, "currency": "usd"} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[currency ends with invalid symbol-128-0-USDa] | 0.09 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 128, "amount": 0, "currency": "USDa"} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[currency in unsupported encoding-128-0-РУБ] | 0.08 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 128, "amount": 0, "currency": "\u0420\u0423\u0411"} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_payment[negative amount-130--22.12-EUR] | 0.09 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 130, "amount": -22.12, "currency": "EUR"} Response is parsed with status 400 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[empty amount-129--EUR] | 0.12 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 129, "amount": "", "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[purchase is decimal-12.12-33-EUR] | 0.16 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 12.12, "amount": 33, "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[purchase is empty string--33-EUR] | 0.09 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": "", "amount": 33, "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[zero amount-131-0-EUR] | 0.17 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 131, "amount": 0, "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[negative zero amount-132-0-EUR] | 0.09 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 132, "amount": 0, "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[negative purchase--1-33-EUR] | 0.08 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": -1, "amount": 33, "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[invalid purchase type-purchase6-33.22-EUR] | 0.10 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": [], "amount": 33.22, "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[invalid amount type-130-amount7-EUR] | 0.08 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 130, "amount": ["test"], "currency": "EUR"} Response is parsed with status 500 and body None | |||
Passed | tests/test_create_payment.py::test_create_invalid_types_payment[invalid currency type-130-54.4-False] | 0.11 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 130, "amount": 54.4, "currency": false} Response is parsed with status 500 and body None | |||
Passed | tests/test_delete_payment.py::test_delete_single_payment | 0.42 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 592, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '670e4e12-aa3d-4c19-a98d-efd8f92f627a', 'processed': False, 'purchase': 592} Deleting payment 670e4e12-aa3d-4c19-a98d-efd8f92f627a Response is parsed with status 204 and body b'' Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': False, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] | |||
Passed | tests/test_delete_payment.py::test_delete_non_existing_payment | 0.08 | |
------------------------------Captured stdout call------------------------------ Deleting payment 458435897345 Response is parsed with status 404 and body None | |||
Passed | tests/test_delete_payment.py::test_delete_multiple_payments | 0.49 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 121, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '0434a9fe-639d-433e-b8a4-e7f1f66f61d8', 'processed': False, 'purchase': 121} Creating payment with body {"purchase": 340, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b845dcd6-a51d-47f1-9a94-93a7310b1918', 'processed': False, 'purchase': 340} Deleting payment 0434a9fe-639d-433e-b8a4-e7f1f66f61d8 Response is parsed with status 204 and body b'' Deleting payment b845dcd6-a51d-47f1-9a94-93a7310b1918 Response is parsed with status 204 and body b'' Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': False, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] | |||
Passed | tests/test_get_payments.py::test_get_created_payment | 0.19 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 273, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': False, 'purchase': 273} Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': False, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': False, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] | |||
Passed | tests/test_get_payments.py::test_get_processed_payment | 0.27 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 134, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': False, 'purchase': 134} Processing payments Response is parsed with status 403 and body None Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': False, 'purchase': 134}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': False, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': False, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] | |||
Passed | tests/test_get_payments.py::test_always_same_payments_order | 0.29 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 947, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'af2f654e-6ddc-4c32-94b6-66268eb61a53', 'processed': False, 'purchase': 947} Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'af2f654e-6ddc-4c32-94b6-66268eb61a53', 'processed': False, 'purchase': 947}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': False, 'purchase': 134}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': False, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': False, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'af2f654e-6ddc-4c32-94b6-66268eb61a53', 'processed': False, 'purchase': 947}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': False, 'purchase': 134}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': False, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': False, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] | |||
Passed | tests/test_process_payment.py::test_process_valid_payment | 0.33 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 810, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'admin', 'paymentId': '08af7b89-deef-4724-b46f-e1cfe52268b0', 'processed': False, 'purchase': 810} Processing payments Response is parsed with status 200 and body {'processed': 5} ----------------------------Captured stdout teardown---------------------------- Deleting payment 08af7b89-deef-4724-b46f-e1cfe52268b0 Response is parsed with status 204 and body b'' | |||
Passed | tests/test_process_payment.py::test_process_all_payments | 0.70 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 564, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'admin', 'paymentId': '8774e58a-b225-41cd-9b12-a726b55e3ddb', 'processed': False, 'purchase': 564} Creating payment with body {"purchase": 311, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'admin', 'paymentId': '2d1d3806-c7fa-44d1-bc32-0be3457ab85f', 'processed': False, 'purchase': 311} Processing payments Response is parsed with status 200 and body {'processed': 2} Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.0, 'currency': 'EUR', 'name': 'admin', 'paymentId': '8774e58a-b225-41cd-9b12-a726b55e3ddb', 'processed': True, 'purchase': 564}, {'amount': 10.0, 'currency': 'EUR', 'name': 'admin', 'paymentId': '2d1d3806-c7fa-44d1-bc32-0be3457ab85f', 'processed': True, 'purchase': 311}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': True, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': True, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': True, 'purchase': 134}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'af2f654e-6ddc-4c32-94b6-66268eb61a53', 'processed': True, 'purchase': 947}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] ----------------------------Captured stdout teardown---------------------------- Deleting payment 08af7b89-deef-4724-b46f-e1cfe52268b0 Response is parsed with status 404 and body None Deleting payment 8774e58a-b225-41cd-9b12-a726b55e3ddb Response is parsed with status 204 and body b'' Deleting payment 2d1d3806-c7fa-44d1-bc32-0be3457ab85f Response is parsed with status 204 and body b'' | |||
Passed | tests/test_process_payment.py::test_money_conversion[same currency-EUR-10.1-10.1] | 0.67 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 123, "amount": 10.1, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.1, 'currency': 'EUR', 'name': 'admin', 'paymentId': '65d01c6f-3d08-426d-9d16-4f1a53dd912b', 'processed': False, 'purchase': 123} Processing payments Response is parsed with status 200 and body {'processed': 1} Retrieving all payments Response is parsed with status 200 and body [{'amount': 10.1, 'currency': 'EUR', 'name': 'admin', 'paymentId': '65d01c6f-3d08-426d-9d16-4f1a53dd912b', 'processed': True, 'purchase': 123}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': True, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': True, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': True, 'purchase': 134}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'af2f654e-6ddc-4c32-94b6-66268eb61a53', 'processed': True, 'purchase': 947}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] ----------------------------Captured stdout teardown---------------------------- Deleting payment 08af7b89-deef-4724-b46f-e1cfe52268b0 Response is parsed with status 404 and body None Deleting payment 8774e58a-b225-41cd-9b12-a726b55e3ddb Response is parsed with status 404 and body None Deleting payment 2d1d3806-c7fa-44d1-bc32-0be3457ab85f Response is parsed with status 404 and body None Deleting payment 65d01c6f-3d08-426d-9d16-4f1a53dd912b Response is parsed with status 204 and body b'' | |||
Passed | tests/test_process_payment.py::test_money_conversion[existing conversion rate-PHP-100.22-5697.90788] | 0.81 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 123, "amount": 100.22, "currency": "PHP"} Response is parsed with status 201 and body {'amount': 100.22, 'currency': 'PHP', 'name': 'admin', 'paymentId': '8421e2cc-360f-437d-a821-6e8e15970817', 'processed': False, 'purchase': 123} Processing payments Response is parsed with status 200 and body {'processed': 1} Retrieving all payments Response is parsed with status 200 and body [{'amount': 5697.90788, 'currency': 'EUR', 'name': 'admin', 'paymentId': '8421e2cc-360f-437d-a821-6e8e15970817', 'processed': True, 'purchase': 123}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '1d551fdc-54d3-4416-b676-d68d988bf1f8', 'processed': True, 'purchase': 308}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'f191f8ac-fd0e-4b59-9e82-465254271d41', 'processed': True, 'purchase': 273}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '956aaf57-5b73-4c87-8f64-a96136b759ea', 'processed': True, 'purchase': 134}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'af2f654e-6ddc-4c32-94b6-66268eb61a53', 'processed': True, 'purchase': 947}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '076c9f06-498f-4f19-b7a0-b0edd866ec14', 'processed': True, 'purchase': 926}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '4ef631bd-b30b-43fc-ae7b-44f5b9cbedad', 'processed': True, 'purchase': 997}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'a14af56f-d822-42d2-b10a-606b2df6130f', 'processed': True, 'purchase': 891}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '486ac15f-c8b6-4f0e-b071-1a2275b29f97', 'processed': True, 'purchase': 205}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '8feae94b-2a06-45be-92d8-96f9eecc1d8a', 'processed': True, 'purchase': 936}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '39170a91-a716-41db-87fd-e500893a7eda', 'processed': True, 'purchase': 209}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b5f8c683-c16f-4cd5-bf24-170310f16112', 'processed': True, 'purchase': 195}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'd16ffc18-3cf9-4338-984b-0b6600efad28', 'processed': True, 'purchase': 932}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': '653f930b-588c-44bf-8a41-9c5abbe2c848', 'processed': True, 'purchase': 700}, {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'cdc82795-7054-4346-a5c5-e716db7ba6af', 'processed': True, 'purchase': 347}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '232d1ab8-e372-4969-b376-3befd8eb2b3f', 'processed': True, 'purchase': 231}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '503a71a7-d840-45d7-a905-718bd4dfea55', 'processed': True, 'purchase': 600}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': '3aa8ad49-8981-4a03-ac36-ea803990648f', 'processed': True, 'purchase': 629}, {'amount': 5697.90788, 'currency': 'EUR', 'name': 'john', 'paymentId': 'b51e0d68-20e6-4155-b4a7-45cd93acb854', 'processed': True, 'purchase': 497}] ----------------------------Captured stdout teardown---------------------------- Deleting payment 08af7b89-deef-4724-b46f-e1cfe52268b0 Response is parsed with status 404 and body None Deleting payment 8774e58a-b225-41cd-9b12-a726b55e3ddb Response is parsed with status 404 and body None Deleting payment 2d1d3806-c7fa-44d1-bc32-0be3457ab85f Response is parsed with status 404 and body None Deleting payment 65d01c6f-3d08-426d-9d16-4f1a53dd912b Response is parsed with status 404 and body None Deleting payment 8421e2cc-360f-437d-a821-6e8e15970817 Response is parsed with status 204 and body b'' | |||
Passed | tests/test_process_payment.py::test_cannot_process_with_non_admin | 0.91 | |
------------------------------Captured stdout call------------------------------ Creating payment with body {"purchase": 569, "amount": 10.0, "currency": "EUR"} Response is parsed with status 201 and body {'amount': 10.0, 'currency': 'EUR', 'name': 'john', 'paymentId': 'dd675c30-caf1-428e-b34c-401e44eea066', 'processed': False, 'purchase': 569} Processing payments Response is parsed with status 403 and body None ----------------------------Captured stdout teardown---------------------------- Deleting payment 08af7b89-deef-4724-b46f-e1cfe52268b0 Response is parsed with status 404 and body None Deleting payment 8774e58a-b225-41cd-9b12-a726b55e3ddb Response is parsed with status 404 and body None Deleting payment 2d1d3806-c7fa-44d1-bc32-0be3457ab85f Response is parsed with status 404 and body None Deleting payment 65d01c6f-3d08-426d-9d16-4f1a53dd912b Response is parsed with status 404 and body None Deleting payment 8421e2cc-360f-437d-a821-6e8e15970817 Response is parsed with status 404 and body None Deleting payment f191f8ac-fd0e-4b59-9e82-465254271d41 Response is parsed with status 204 and body b'' Deleting payment 956aaf57-5b73-4c87-8f64-a96136b759ea Response is parsed with status 204 and body b'' Deleting payment af2f654e-6ddc-4c32-94b6-66268eb61a53 Response is parsed with status 204 and body b'' |