Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vivodi committed Jan 24, 2025
1 parent 44e81b4 commit d8d1513
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions flexget/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ def test_disable_builtins(self, execute_task):
# Execute the task once, then we'll make sure seen plugin isn't rejecting on future executions
execute_task('test')
task = execute_task('test')
assert task.find_entry('accepted', title='dupe1') and task.find_entry(
assert task.find_entry('accepted', title='dupe1')
assert task.find_entry(
'accepted', title='dupe2'
), 'disable is not working?'
task = execute_task('test2')
assert task.find_entry(title='dupe1').accepted and task.find_entry(
assert task.find_entry(title='dupe1').accepted
assert task.find_entry(
'accepted', title='dupe2'
), 'disable is not working?'

Expand Down
3 changes: 2 additions & 1 deletion flexget/tests/test_seen.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def test_seen(self, execute_task):
# test that we don't filter reject on non-string fields (ie, seen same imdb_score)

task = execute_task('test_number')
assert task.find_entry(title='New title 1') and task.find_entry(title='New title 2'), (
assert task.find_entry(title='New title 1')
assert task.find_entry(title='New title 2'), (
'Item should not have been rejected because of number field'
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ line-length = 99
extend-exclude = ["flexget/ui"]

[tool.ruff.lint]
select = ["B", "C4", "E", "F", "I", "ISC", "PGH", "PLE", "RET", "RUF", "SIM", "TCH", "UP", "W"]
select = ["B", "C4", "E", "F", "I", "ISC", "PGH", "PLE", "PT", "RET", "RUF", "SIM", "TCH", "UP", "W"]
ignore = [
"B904", # TODO: enable this rule (requires a lot of manual work)
"E501", # TODO: enable this rule (requires a lot of manual work)
Expand Down

0 comments on commit d8d1513

Please sign in to comment.