We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be888f8 commit 6b35fe8Copy full SHA for 6b35fe8
test/functional/test_pin.py
@@ -1,15 +1,15 @@
1
-import pytest
+import pathlib
2
3
-from pathlib import Path
+import pytest
4
5
import ipfshttpclient.exceptions
6
7
8
class Resources:
9
- def __init__(self, client, source_folder: Path) -> None:
+ def __init__(self, client, source_folder: pathlib.Path) -> None:
10
self.msg = client.add_str("Mary had a little lamb")
11
self.msg2 = client.add_str("Mary had a little alpaca")
12
- resp_add = client.add(str(source_folder), recursive=True)
+ resp_add = client.add(source_folder, recursive=True)
13
self.fake_dir_hashes = [el["Hash"] for el in resp_add if "Hash" in el]
14
for resp in resp_add:
15
if resp["Name"] == "fake_dir":
0 commit comments