We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43252bf commit af4d421Copy full SHA for af4d421
src/diffpy/labpdfproc/tests/test_tools.py
@@ -28,11 +28,11 @@ def test_set_output_directory(inputs, expected):
28
29
30
def test_set_output_directory_bad():
31
- existing_dir = Path().cwd().resolve() / "existing_dir.py"
32
- with open(existing_dir, "w"):
+ existing_file = Path().cwd().resolve() / "existing_file.py"
+ with open(existing_file, "w"):
33
pass
34
35
- actual_args = argparse.Namespace(output_directory="existing_dir.py")
+ actual_args = argparse.Namespace(output_directory="existing_file.py")
36
with pytest.raises(FileExistsError):
37
actual_args.output_directory = set_output_directory(actual_args)
38
assert Path(actual_args.output_directory).exists()
0 commit comments