Skip to content

Commit

Permalink
Test: Fix compatibility with pytest>=8 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Feb 8, 2024
1 parent 25be23d commit 75a1b9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

test_reqs = [
"mock>=3",
"pytest>=7",
"pytest>=8",
"pytest-cov>=3",
"pytest-html>=3",
"pytest-html>=4",
]

setup(
Expand Down
3 changes: 2 additions & 1 deletion tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ def check_exception(task, exception):
assert not luigi.build([TaskH()], local_scheduler=True)
assert failed_task == [str(TaskG(g="another_new_value"))]
assert exceptions == [
"assert 'another_new_value' == 'new_value'\n - new_value\n + another_new_value"
"assert 'another_new_value' == 'new_value'\n \n - new_value\n + "
"another_new_value"
]

def test_compare_inherits(self, luigi_tools_working_directory):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def check_exception(task, exception):

assert failed_task == [str(Task(a="a_from_cfg", expected_a="different_value"))]
assert exceptions == [
"assert 'a_from_cfg' == 'different_value'\n - different_value\n + a_from_cfg"
"assert 'a_from_cfg' == 'different_value'\n \n - different_value\n + a_from_cfg"
]

def test_config_file(self, Task):
Expand Down

0 comments on commit 75a1b9e

Please sign in to comment.