webcrawlerapi 2.1.5__tar.gz → 2.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/PKG-INFO +1 -1
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/setup.py +1 -1
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/tests/test_models.py +1 -1
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi/models.py +2 -2
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi.egg-info/PKG-INFO +1 -1
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/README.md +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/pyproject.toml +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/setup.cfg +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/tests/__init__.py +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/tests/test_client.py +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi/__init__.py +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi/client.py +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi.egg-info/SOURCES.txt +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi.egg-info/dependency_links.txt +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi.egg-info/requires.txt +0 -0
- {webcrawlerapi-2.1.5 → webcrawlerapi-2.1.6}/webcrawlerapi.egg-info/top_level.txt +0 -0
|
@@ -428,4 +428,4 @@ class TestJob:
|
|
|
428
428
|
|
|
429
429
|
def test_job_terminal_statuses_constant(self):
|
|
430
430
|
"""Test that TERMINAL_STATUSES constant is correctly defined."""
|
|
431
|
-
assert Job.TERMINAL_STATUSES == {"done", "error", "cancelled"}
|
|
431
|
+
assert Job.TERMINAL_STATUSES == {"done", "error", "cancelled", "canceled"}
|
|
@@ -284,7 +284,7 @@ class JobItem:
|
|
|
284
284
|
class Job:
|
|
285
285
|
"""Represents a crawling job."""
|
|
286
286
|
|
|
287
|
-
TERMINAL_STATUSES = {"done", "error", "cancelled"}
|
|
287
|
+
TERMINAL_STATUSES = {"done", "error", "cancelled", "canceled"}
|
|
288
288
|
|
|
289
289
|
def __init__(self, data: Dict[str, Any]):
|
|
290
290
|
self.id: str = data["id"]
|
|
@@ -317,5 +317,5 @@ class Job:
|
|
|
317
317
|
|
|
318
318
|
@property
|
|
319
319
|
def is_terminal(self) -> bool:
|
|
320
|
-
"""Check if the job is in a terminal state (done, error, or cancelled)."""
|
|
320
|
+
"""Check if the job is in a terminal state (done, error, or cancelled/canceled)."""
|
|
321
321
|
return self.status in self.TERMINAL_STATUSES
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|