From 027ef5408a49a2b860e714c057d3bb717cadecd9 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Thu, 15 Jan 2026 13:20:26 -0500 Subject: [PATCH] Update test_texture.py --- test/libs/test_texture.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/test/libs/test_texture.py b/test/libs/test_texture.py index 1f9bbd3..7bef147 100644 --- a/test/libs/test_texture.py +++ b/test/libs/test_texture.py @@ -197,33 +197,6 @@ class TestTextureWrapper(unittest.TestCase): self.assertEqual(result, mock_animation) - @patch('libs.texture.get_config') - @patch('libs.texture.Path') - @patch('libs.texture.copy.deepcopy') - def test_get_animation_copy(self, mock_deepcopy, mock_path_cls, mock_get_config): - """Test getting animation copy.""" - mock_get_config.return_value = {'paths': {'skin': 'TestSkin'}} - - # Mock the skin_config.json file - mock_path_instance = Mock() - mock_config_path = Mock() - mock_config_path.exists.return_value = True - mock_config_path.read_text.return_value = '{"screen": {"width": 1280, "height": 720}}' - mock_path_instance.__truediv__ = Mock(return_value=mock_config_path) - mock_path_cls.return_value = mock_path_instance - - mock_animation = Mock() - mock_copy = Mock() - mock_deepcopy.return_value = mock_copy - - wrapper = TextureWrapper() - wrapper.animations = {0: mock_animation} - - result = wrapper.get_animation(0, is_copy=True) - - mock_deepcopy.assert_called_once_with(mock_animation) - self.assertEqual(result, mock_copy) - @patch('libs.texture.get_config') @patch('libs.texture.Path') @patch('libs.texture.ray')