MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / setUp

Method setUp

diffusers/tests/others/test_check_copies.py:49–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47
48class CopyCheckTester(unittest.TestCase):
49 def setUp(self):
50 self.diffusers_dir = tempfile.mkdtemp()
51 os.makedirs(os.path.join(self.diffusers_dir, "schedulers/"))
52 check_copies.DIFFUSERS_PATH = self.diffusers_dir
53 shutil.copy(
54 os.path.join(git_repo_path, "src/diffusers/schedulers/scheduling_ddpm.py"),
55 os.path.join(self.diffusers_dir, "schedulers/scheduling_ddpm.py"),
56 )
57
58 def tearDown(self):
59 check_copies.DIFFUSERS_PATH = "src/diffusers"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected