Skip to content

Commit 8544c8a

Browse files
committed
update test_http.py with fixtures
1 parent cb6d937 commit 8544c8a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_api/test_http.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212

1313
@pytest.fixture
14-
def cache() -> HTTPCache:
15-
return HTTPCache()
14+
def cache(http_client_v1) -> HTTPCache:
15+
return http_client_v1.cache
1616

1717

1818
@pytest.fixture
19-
def http_client() -> HTTPClient:
20-
return HTTPClient(api_version=APIVersion.V1)
19+
def http_client(http_client_v1) -> HTTPClient:
20+
return http_client_v1
2121

2222

2323
@pytest.fixture

0 commit comments

Comments
 (0)