Skip to content

Commit ddaf733

Browse files
authored
updated lib name
1 parent 2fba07c commit ddaf733

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/test_unit_user_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest.mock import patch, Mock
22

33
def test_user_creation_mock(client):
4-
with patch("utils.api_client.requests.post") as mock_post:
4+
with patch("util_lib.api_client.requests.post") as mock_post:
55
mock_post.return_value.status_code = 201
66
mock_post.return_value.json.return_value = {"id": 5, "name": "Testing"}
77
response = client.post("/getallmanufacturers?format=json", json={"name": "Testing"})
@@ -11,7 +11,7 @@ def test_user_creation_mock(client):
1111

1212
def test_get_user_from_service(client):
1313
# Arrange
14-
with patch("utils.api_client.requests.get") as mock_get:
14+
with patch("util_lib.api_client.requests.get") as mock_get:
1515
mock_get.return_value.status_code = 200
1616
mock_get.return_value.json.return_value = {"first_name": "Alice", "last_name": "Smith"}
1717
response = client.get("/getallmanufacturers?format=json")

0 commit comments

Comments
 (0)