clear_moveoutput_fixture.py 676 B

12345678910111213141516171819202122
  1. """
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. """
  6. # Import builtin libraries
  7. import pytest
  8. # Import ly_shared
  9. import ly_test_tools.o3de.pipeline_utils as pipeline_utils
  10. @pytest.fixture
  11. def clear_moveoutput_fixture(request, workspace) -> None:
  12. pipeline_utils.delete_MoveOutput_folders([workspace.paths.engine_root(), workspace.paths.project()])
  13. def teardown():
  14. pipeline_utils.delete_MoveOutput_folders([workspace.paths.engine_root(), workspace.paths.project()])
  15. request.addfinalizer(teardown)