Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 695f44c

Browse files
author
Jesse Claven
authored
Merge pull request #189 from duffelhq/switch-version-to-v1
Switch version to v1
2 parents ac93945 + 89108a3 commit 695f44c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

duffel_api/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class HttpClient:
7777
"""Http Client to manage all calls to the Duffel API"""
7878

7979
URL = "https://api.duffel.com"
80-
VERSION = "beta"
80+
VERSION = "v1"
8181

8282
def __init__(self, access_token=None, api_url=None, api_version=None, **settings):
8383
if api_url is not None:

tests/test_http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def test_http_client(requests_mock):
77
requests_mock.get("http://someaddress/api/stuff", json={})
8-
client = HttpClient("some_token", "http://someaddress", "beta")
8+
client = HttpClient("some_token", "http://someaddress", "v1")
99
assert client.do_get("/api/stuff") == {}
1010

1111

@@ -24,7 +24,7 @@ def test_http_client_error(requests_mock):
2424
],
2525
}
2626
requests_mock.get("http://someaddress/api/stuff", json=error, status_code=500)
27-
client = HttpClient("some_token", "http://someaddress", "beta")
27+
client = HttpClient("some_token", "http://someaddress", "v1")
2828
with pytest.raises(
2929
ApiError, match="The airline responded with an unexpected error"
3030
):

0 commit comments

Comments
 (0)