Skip to content

Commit

Permalink
[persons] use data/persons route instead of data/persons/new for crea…
Browse files Browse the repository at this point in the history
…ting a person
  • Loading branch information
EvanBldy committed Feb 27, 2024
1 parent f59b506 commit 2d8f509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gazu/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def new_person(
person = get_person_by_email(email, client=client)
if person is None:
person = raw.post(
"data/persons/new",
"data/persons",
{
"first_name": first_name,
"last_name": last_name,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_new_person(self):
mock_route(
mock, "GET", "data/[email protected]", text=[]
)
mock_route(mock, "POST", "data/persons/new", text=result)
mock_route(mock, "POST", "data/persons", text=result)
self.assertEqual(
gazu.person.new_person(
"Jhon",
Expand Down

0 comments on commit 2d8f509

Please sign in to comment.