Skip to content

Commit baa3a38

Browse files
committed
nits: test classes
1 parent f6bc7f7 commit baa3a38

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

tests/test_api/test_http.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
import os
77
from urllib.parse import urljoin
88
from openml.enums import APIVersion
9+
from openml._api import HTTPClient
910

1011

1112
class TestHTTPClient(TestAPIBase):
13+
http_client: HTTPClient
14+
1215
def setUp(self):
1316
super().setUp()
1417
self.http_client = self.http_clients[APIVersion.V1]

tests/test_api/test_versions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
from time import time
22
import pytest
33
from openml.testing import TestAPIBase
4-
from openml._api import ResourceV1API, ResourceV2API, FallbackProxy
4+
from openml._api import ResourceV1API, ResourceV2API, FallbackProxy, ResourceAPI
55
from openml.enums import ResourceType, APIVersion
66
from openml.exceptions import OpenMLNotSupportedError
77

88

99
@pytest.mark.uses_test_server()
1010
class TestResourceAPIBase(TestAPIBase):
11+
resource: ResourceAPI | FallbackProxy
12+
1113
def _publish_and_delete(self):
1214
task_xml = """
1315
<oml:task_inputs xmlns:oml="http://openml.org/openml">

0 commit comments

Comments
 (0)