Skip to content

Commit 990c18f

Browse files
committed
fix: fixes in tests
1 parent 8c3f8e3 commit 990c18f

File tree

2 files changed

+2
-42
lines changed

2 files changed

+2
-42
lines changed

content.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

tests/test_task_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_create_task_with_invalid_type(self, task_registry):
5050

5151
def test_http_task_execution(self, mocker: MockerFixture):
5252
config = HttpTaskConfigFactory.build(
53-
url="https://example.com", method="GET", headers={"Authorization": "Bearer token"}
53+
url="https://example.com", headers={"Authorization": "Bearer token"}, start_time=None
5454
)
5555
task = HttpTask(config)
5656

@@ -144,7 +144,7 @@ def test_task_retry_logic(self, mocker: MockerFixture):
144144
"""Checks if the task retry logic works as expected."""
145145

146146
max_retries = 3
147-
config = HttpTaskConfigFactory.build(max_retries=max_retries)
147+
config = HttpTaskConfigFactory.build(max_retries=max_retries, start_time=None)
148148

149149
class FailingTask(BaseTask):
150150
def _do_execute(self, context: Context) -> Generator[None, None, None]:

0 commit comments

Comments
 (0)