@@ -58,14 +58,14 @@ def task_write(path=Path("in.txt"), produces=Path("out.txt")):
5858
5959
6060def test_rename_database_w_config (tmp_path , runner ):
61- """Database files are not created when using the lockfile backend ."""
61+ """Database files are created for compatibility with legacy backends ."""
6262 path_to_db = tmp_path .joinpath (".db.sqlite" )
6363 tmp_path .joinpath ("pyproject.toml" ).write_text (
6464 "[tool.pytask.ini_options]\n database_url='sqlite:///.db.sqlite'"
6565 )
6666 result = runner .invoke (cli , [tmp_path .as_posix ()])
6767 assert result .exit_code == ExitCode .OK
68- assert not path_to_db .exists ()
68+ assert path_to_db .exists ()
6969
7070
7171def test_database_url_from_config_is_parsed (tmp_path ):
@@ -80,11 +80,11 @@ def test_database_url_from_config_is_parsed(tmp_path):
8080
8181
8282def test_rename_database_w_cli (tmp_path , runner ):
83- """Database files are not created when using the lockfile backend ."""
83+ """Database files are created for compatibility with legacy backends ."""
8484 path_to_db = tmp_path .joinpath (".db.sqlite" )
8585 result = runner .invoke (
8686 cli ,
8787 ["--database-url" , "sqlite:///.db.sqlite" , tmp_path .as_posix ()],
8888 )
8989 assert result .exit_code == ExitCode .OK
90- assert not path_to_db .exists ()
90+ assert path_to_db .exists ()
0 commit comments