MCPcopy
hub / github.com/beetbox/beets / setUp

Method setUp

test/test_files.py:680–688  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

678
679class UniquePathTest(BeetsTestCase):
680 def setUp(self):
681 super().setUp()
682
683 self.base = os.path.join(self.temp_dir, b"testdir")
684 os.mkdir(syspath(self.base))
685 touch(os.path.join(self.base, b"x.mp3"))
686 touch(os.path.join(self.base, b"x.1.mp3"))
687 touch(os.path.join(self.base, b"x.2.mp3"))
688 touch(os.path.join(self.base, b"y.mp3"))
689
690 def test_new_file_unchanged(self):
691 path = util.unique_path(os.path.join(self.base, b"z.mp3"))

Callers

nothing calls this directly

Calls 4

syspathFunction · 0.90
touchFunction · 0.90
joinMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected