From 81a49da123fcfaf0e4a0f4f57ad62e194395e4b7 Mon Sep 17 00:00:00 2001 From: Maxim Matantsev <59177712+maksktl@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:39:41 +0300 Subject: [PATCH] Update test_innodrive.py --- tests/test_innodrive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_innodrive.py b/tests/test_innodrive.py index 72f3008..387697b 100644 --- a/tests/test_innodrive.py +++ b/tests/test_innodrive.py @@ -2,7 +2,7 @@ import pytest from hypothesis import given -import json +import ujson import hypothesis.strategies as st from httpx import Client @@ -38,7 +38,7 @@ def test_budget_multiple_requests(test_app, email, numbers): "planned_time": numbers, "inno_discount": "no" } - response = test_app.post("/rangeprice/" + email, content=json.dumps(data)) + response = test_app.post("/rangeprice/" + email, content=ujson.dumps(data)) assert response.json()['price'] == my_spec["budget_minute_price"] * numbers @pytest.mark.parametrize("email", ["m.matantsev@innopolis.university"]) @@ -53,5 +53,5 @@ def test_luxury_multiple_requests(test_app, email, numbers): "planned_time": numbers, "inno_discount": "no" } - response = test_app.post("/rangeprice/" + email, content=json.dumps(data)) + response = test_app.post("/rangeprice/" + email, content=ujson.dumps(data)) assert response.json()['price'] == my_spec["luxury_minute_price"] * numbers