Skip to content

Commit

Permalink
Update ruff >= 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhwaja committed Sep 1, 2024
1 parent a32ad8d commit 1d2ecdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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_
Expand Down Expand Up @@ -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()

0 comments on commit 1d2ecdf

Please sign in to comment.