Skip to content

Commit d1aa661

Browse files
committed
remove docstrings
1 parent 8088b58 commit d1aa661

9 files changed

+2
-37
lines changed

tests/test_cli_commands.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Tests for CLI commands using mocks."""
2-
31
import io
42
import unittest
53
from datetime import datetime

tests/test_cli_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Tests for CLI config module."""
2-
31
import configparser
42
import json
53
import unittest

tests/test_client_download.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
def _random_image_url() -> str:
10-
"""Return a unique dummyimage.com URL with random dimensions and colour."""
1110
w = random.randint(100, 800)
1211
h = random.randint(100, 600)
1312
bg = format(random.randint(0, 0xFFFFFF), "06x")
@@ -25,10 +24,6 @@ def test_quota_returns_info(self):
2524

2625

2726
class TestDownloadAddAndDelete(BaseTestCase):
28-
"""Test add_url and add_urls then clean up.
29-
30-
All tasks are deleted in tearDown to preserve quota.
31-
"""
3227

3328
def setUp(self):
3429
self._hashes_to_delete: list[str] = []

tests/test_client_download_info.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Integration tests for download_info (file download URL retrieval)."""
2-
1+
import hashlib
32
import unittest
43
import urllib.request
54

@@ -8,9 +7,6 @@
87

98

109
class TestDownloadInfo(BaseTestCase):
11-
"""Upload a file with known content, retrieve download info, download it,
12-
and compare the bytes to verify the download works correctly.
13-
"""
1410

1511
_remote_path: str
1612
_uploaded_sha1: str
@@ -41,10 +37,6 @@ def test_download_info_has_cookies(self):
4137
self.assertIn("CID", info.cookies)
4238

4339
def test_download_content_matches_upload(self):
44-
"""Download the file using the URL and headers from download_info and
45-
verify the sha1 is identical to what was uploaded."""
46-
import hashlib
47-
4840
info = self.client.file.download_info(self._remote_path)
4941
req = urllib.request.Request(
5042
info.url,

tests/test_client_file_management.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
"""Integration tests for the file client.
2-
3-
Covers: list, info, create_directory, delete, move, copy, rename.
4-
All operations use path-based parameters and test both files and directories
5-
where applicable.
6-
"""
7-
81
import unittest
92
import uuid
103

tests/test_client_find.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def _unique(prefix: str) -> str:
1010

1111

1212
class TestFind(BaseTestCase):
13-
"""Tests for FileClient.find using a pre-built directory tree."""
1413

1514
@classmethod
1615
def setUpClass(cls):
@@ -67,7 +66,6 @@ def test_find(self):
6766
self.assertEqual(pagination.total, 0)
6867

6968
def test_find_global_search(self):
70-
"""Global search (path=None) returns results from anywhere."""
7169
entries, pagination = self.client.file.find(self.sub_dir.name)
7270
self.assertEqual(entries[0].id, self.sub_dir.id)
7371
self.assertEqual(entries[0].name, self.sub_dir.name)

tests/test_client_upload.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Integration tests for file upload operations."""
2-
31
import hashlib
42
import io
53
import unittest

tests/test_formatters.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Tests for output formatter classes and mixins."""
2-
31
import json
42
import unittest
53

tests/test_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
"""Unit tests for cli115.client.utils helper functions.
2-
3-
These tests are pure unit tests that do not require network access.
4-
"""
5-
61
import unittest
72
from datetime import datetime
83

@@ -142,7 +137,7 @@ def _file_raw(self, **overrides):
142137
def _dir_raw(self, **overrides):
143138
base = {
144139
"cid": "333", # directory's own id
145-
"pid": "0", # parent id
140+
"pid": "0", # parent id
146141
"n": "myfolder",
147142
"pc": "def456",
148143
"fc": 5,

0 commit comments

Comments
 (0)