Skip to content

Commit ac58cec

Browse files
committed
Fix test
1 parent 05a86ad commit ac58cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astrocut/tests/test_cutouts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def test_fits_cut(tmpdir, caplog, ffi_type):
8282
assert not path.exists(nonexisting_dir) # no files should be written
8383

8484
# Output directory that has to be created
85-
new_dir = "cutout_files" # non-existing directory to write files to
85+
new_dir = path.join(tmpdir, "cutout_files") # non-existing directory to write files to
8686
cutout_files = cutouts.fits_cut(test_images, center_coord, cutout_size,
87-
output_dir=path.join(tmpdir, new_dir), single_outfile=False)
87+
output_dir=new_dir, single_outfile=False)
8888

8989
assert isinstance(cutout_files, list)
9090
assert len(cutout_files) == len(test_images)

0 commit comments

Comments
 (0)