diff options
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 17966b7..6606e5b 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1,6 +1,7 @@ import contextlib import io import os +import shutil import tempfile import unittest @@ -8,8 +9,6 @@ import hazwaz.unittest from lesana import command -from . import utils - class Args: def __init__(self, args): @@ -45,7 +44,7 @@ class CommandsMixin: class testCommandsSimple(hazwaz.unittest.HazwazTestCase, CommandsMixin): def setUp(self): self.tmpdir = tempfile.TemporaryDirectory() - utils.copytree( + shutil.copytree( 'tests/data/simple', self.tmpdir.name, dirs_exist_ok=True, @@ -141,7 +140,7 @@ class testCommandsSimple(hazwaz.unittest.HazwazTestCase, CommandsMixin): def test_export(self): with tempfile.TemporaryDirectory() as dest_tmpdir: - utils.copytree( + shutil.copytree( 'tests/data/simple', dest_tmpdir, dirs_exist_ok=True, @@ -197,7 +196,7 @@ class testCommandsSimple(hazwaz.unittest.HazwazTestCase, CommandsMixin): class testCommandsComplex(hazwaz.unittest.HazwazTestCase, CommandsMixin): def setUp(self): self.tmpdir = tempfile.TemporaryDirectory() - utils.copytree( + shutil.copytree( 'tests/data/complex', self.tmpdir.name, dirs_exist_ok=True, |