We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 775032a commit 708fc82Copy full SHA for 708fc82
test/test_utils.py
@@ -12,6 +12,7 @@
12
fftsanitise,
13
cleanup
14
)
15
+from flucoma import fluid
16
17
def test_fftsanitise():
18
bad_fft = [512.0, 128.0, 512.0]
@@ -64,6 +65,9 @@ def test_make_temp():
64
65
assert another_file != temp_file
66
67
def test_cleanup():
68
+ tempfiles = Path.home() / ".python-flucoma"
69
+ test_file = Path("test") / "test_file.wav"
70
+ fluid.hpss(test_file)
71
cleanup()
- temp_path = Path(".flucoma")
- assert not temp_path.exists()
72
+ leftovers = [x for x in tempfiles.iterdir() if x != ".DS_Store"]
73
+ assert len(leftovers) == 0
0 commit comments