diff --git a/pyproject.toml b/pyproject.toml index 9a02894..ef692b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ python-dotenv = ">=0.17.1" pytest-cov = ">=3" pytest-asyncio = ">=0.16.0" poethepoet = ">=0.16.4" -ruff = ">=0.3.1" +ruff = ">=0.6.3" [tool.poe.tasks] build = "poetry build --no-interaction" diff --git a/tests/conftest.py b/tests/conftest.py index 0918ad6..f93fc74 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -32,11 +32,11 @@ def apiAsync(): apiKey, sharedSecret, token = _GetConfig() return APIAsync(apiKey, sharedSecret, token) -@fixture() +@fixture def timeline(api): return api.TimelinesCreate().timeline -@fixture() +@fixture def task(api, timeline): task = api.TasksAdd(timeline, f'new task {uuid4()}') yield task @@ -45,14 +45,14 @@ def task(api, timeline): task.list.taskseries[0].id, task.list.taskseries[0].task[0].id) -@fixture() +@fixture def newList(api, timeline): list_ = api.ListsAdd(timeline, f'list {uuid4()}') yield list_ list_ = api.ListsDelete(timeline, list_.list.id) assert list_.list.deleted is True, list_ -@fixture() +@fixture def newSmartList(api, timeline): list_ = api.ListsAdd(timeline, f'list {uuid4()}', filter='tag:tag1') yield list_ @@ -93,23 +93,23 @@ def Cleanup(self): task.list.taskseries[0].task[0].id) self.tasks.clear() -@fixture() +@fixture def taskCreatorAPI(api, timeline): creator = TaskCreatorAPI(api, timeline) yield creator creator.Cleanup() -@fixture() +@fixture def taskCreator(client): creator = TaskCreator(client) yield creator creator.Cleanup() -@fixture() +@fixture def client(): apiKey, sharedSecret, token = _GetConfig() return Client.Create(apiKey, sharedSecret, token) -@fixture() +@fixture def mockClient(): return MagicMock()