We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc37b8 commit 08d9916Copy full SHA for 08d9916
1 file changed
tests/test_api/test_http.py
@@ -3,6 +3,7 @@
3
import xmltodict
4
import pytest
5
from openml.testing import TestAPIBase
6
+import os
7
8
9
class TestHTTPClient(TestAPIBase):
@@ -11,12 +12,19 @@ def test_cache(self):
11
12
params = {"param1": "value1", "param2": "value2"}
13
14
key = self.cache.get_key(url, params)
15
+ expected_key = os.path.join(
16
+ "org",
17
+ "openml",
18
+ "test",
19
+ "api",
20
+ "v1",
21
+ "task",
22
+ "31",
23
+ "param1=value1¶m2=value2",
24
+ )
25
26
# validate key
- self.assertEqual(
- key,
- "org/openml/test/api/v1/task/31/param1=value1¶m2=value2",
- )
27
+ self.assertEqual(key, expected_key)
28
29
# create fake response
30
req = Request("GET", url).prepare()
0 commit comments