diff --git a/tests/conftest.py b/tests/conftest.py index effb265533..5d9644c3fb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -83,8 +83,9 @@ def create_window(width=1280, height=720, caption="Testing", **kwargs): gl_api=GL_BACKEND, ) WINDOW.set_vsync(False) - # This value is being monkey-patched into the Window class so that tests can identify if we are using - # arcade-accelerate easily in case they need to disable something when it is enabled. + # This value is being monkey-patched into the Window class so that tests can + # identify if we are using arcade-accelerate easily in case they need to disable + # something when it is enabled. WINDOW.using_accelerate = os.environ.get("ARCADE_PYTEST_USE_RUST") # pyright: ignore return WINDOW diff --git a/tests/doc/check_examples_2.py b/tests/doc/check_examples_2.py index b974732ef1..78592cdfba 100644 --- a/tests/doc/check_examples_2.py +++ b/tests/doc/check_examples_2.py @@ -20,7 +20,7 @@ def get_references_in_rsts(): if filename.endswith(".rst") and filename != "index.rst": python_example_filename_list.append(filename) txt = Path(mypath / filename).read_text() - reference = re.findall("\.\. _(.*):", txt) + reference = re.findall(r"\.\. _(.*):", txt) references.extend(reference) return references @@ -31,11 +31,12 @@ def main(): files_to_reference = get_references_in_rsts() for reference in files_to_reference: - if not reference in references_in_index: + if reference not in references_in_index: print(f"index.rst is missing any mention of '{reference}'") print( - "Done with checking to make sure references in doc/examples/*.rst are in doc/examples/index.rst" + "Done with checking to make sure references in doc/examples/*.rst " + "are in doc/examples/index.rst" ) diff --git a/tests/unit/cache/test_hit_box_cache.py b/tests/unit/cache/test_hit_box_cache.py index 76cb7a4cf9..cdb842a880 100644 --- a/tests/unit/cache/test_hit_box_cache.py +++ b/tests/unit/cache/test_hit_box_cache.py @@ -1,7 +1,6 @@ import pytest from arcade import load_texture from arcade.cache import HitBoxCache -from arcade import hitbox @pytest.fixture(scope="function") diff --git a/tests/unit/camera/test_camera2d.py b/tests/unit/camera/test_camera2d.py index 5ab9ad752e..ac1c7489ea 100644 --- a/tests/unit/camera/test_camera2d.py +++ b/tests/unit/camera/test_camera2d.py @@ -87,7 +87,7 @@ def test_camera2d_init_inheritance_safety(window: Window, camera_class): def test_camera2d_init_aspect_equal_0_raises_zeroprojectiondimension(window: Window): with pytest.raises(ZeroProjectionDimension): - camera = Camera2D(aspect=0.0) + Camera2D(aspect=0.0) @pytest.mark.parametrize("aspect", ASPECT_RATIOS) diff --git a/tests/unit/draw/test_drawing_primitives.py b/tests/unit/draw/test_drawing_primitives.py index dd404d816a..1d555b51aa 100644 --- a/tests/unit/draw/test_drawing_primitives.py +++ b/tests/unit/draw/test_drawing_primitives.py @@ -94,8 +94,6 @@ def test_draw_primitives(window): # Load and draw an image to the screen # Image from kenney.nl asset pack #1 arcade.draw_text("draw_bitmap", 483, 3, arcade.color.BLACK, 12) - texture = arcade.load_texture(":resources:images/space_shooter/playerShip1_orange.png") - scale = 0.6 # arcade.draw_texture_rectangle(540, 120, scale * texture.width, # scale * texture.height, texture, 0) # arcade.draw_texture_rectangle(540, 60, scale * texture.width, diff --git a/tests/unit/draw/test_point_rotation.py b/tests/unit/draw/test_point_rotation.py index 4b1c11744c..c3a89cd943 100644 --- a/tests/unit/draw/test_point_rotation.py +++ b/tests/unit/draw/test_point_rotation.py @@ -1,5 +1,3 @@ -import pytest -import arcade from arcade.math import rotate_point diff --git a/tests/unit/gl/backends/gl/test_gl_program.py b/tests/unit/gl/backends/gl/test_gl_program.py index bca04fc51e..63fc978596 100644 --- a/tests/unit/gl/backends/gl/test_gl_program.py +++ b/tests/unit/gl/backends/gl/test_gl_program.py @@ -1,8 +1,7 @@ import struct import pytest -import arcade from pyglet.graphics.api import gl -from pyglet.math import Mat4, Mat3 +from pyglet.math import Mat4 from arcade.gl import ShaderException from arcade.gl.backends.opengl.uniform import UniformBlock from arcade.gl.backends.opengl.glsl import ShaderSource @@ -155,7 +154,12 @@ def test_program_basic(ctx): # uniform values using byte data. struct.unpack in uniform setters will read from # objects supporting buffer protocol like glm and numpy types - mat44_bytes = b"\x00\x00\x80?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?" + mat44_bytes = ( + b"\x00\x00\x80?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + b"\x00\x00\x00\x00\x00\x00\x80?\x00\x00\x00\x00\x00\x00\x00\x00" + b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?\x00\x00\x00\x00" + b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80?" + ) program["matrix"] = mat44_bytes assert program["matrix"] == Mat4() @@ -166,7 +170,7 @@ def test_program_basic(ctx): def test_vertex_shader(ctx): # Program with only vertex shader - program = ctx.program( + ctx.program( vertex_shader=""" #version 330 in vec2 in_pos; @@ -213,7 +217,7 @@ def test_geo_shader(ctx): def test_gl_attributes(ctx): """Make sure built in attributes don't interfere with generic attribute detection""" - program = ctx.program( + ctx.program( vertex_shader=""" #version 330 in vec2 pos; @@ -226,7 +230,7 @@ def test_gl_attributes(ctx): def test_compile_failed(ctx): with pytest.raises(ShaderException): - program = ctx.program( + ctx.program( vertex_shader=""" #version 330 in vec2 pos @@ -239,7 +243,7 @@ def test_compile_failed(ctx): def test_link_failed(ctx): with pytest.raises(ShaderException): - program = ctx.program( + ctx.program( vertex_shader=""" #version 330 in vec2 in_pos; diff --git a/tests/unit/gl/test_gl_framebuffer.py b/tests/unit/gl/test_gl_framebuffer.py index 18f29f01f8..ee813fd4bc 100644 --- a/tests/unit/gl/test_gl_framebuffer.py +++ b/tests/unit/gl/test_gl_framebuffer.py @@ -109,7 +109,7 @@ def test_incomplete(ctx): def test_varying_attachment_size(ctx): """Varying attachment sizes not supported for now""" - fb = create(ctx, 10, 20, components=4) + create(ctx, 10, 20, components=4) with pytest.raises(ValueError): ctx.framebuffer( color_attachments=[ diff --git a/tests/unit/gl/test_gl_gc.py b/tests/unit/gl/test_gl_gc.py index 7482c9c8ff..50d2c913f0 100644 --- a/tests/unit/gl/test_gl_gc.py +++ b/tests/unit/gl/test_gl_gc.py @@ -104,7 +104,7 @@ def create_resources(ctx: arcade.ArcadeContext): created, freed = ctx.stats.texture texture = ctx.texture((10, 10)) assert ctx.stats.texture == (created + 1, freed) - texture = None + del texture gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() @@ -115,7 +115,7 @@ def create_resources(ctx: arcade.ArcadeContext): created, freed = ctx.stats.buffer buf = ctx.buffer(reserve=1024) assert ctx.stats.buffer == (created + 1, freed) - buf = None + del buf gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() @@ -129,7 +129,7 @@ def create_resources(ctx: arcade.ArcadeContext): depth_attachment=ctx.depth_texture((1024, 1024)), ) assert ctx.stats.framebuffer == (created + 1, freed) - fb = None + del fb gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() @@ -140,7 +140,7 @@ def create_resources(ctx: arcade.ArcadeContext): created, freed = ctx.stats.program prog = ctx.program(vertex_shader=VERTEX_SRC, fragment_shader=FRAGMENT_SRC) assert ctx.stats.program == (created + 1, freed) - prog = None + del prog gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() @@ -152,7 +152,7 @@ def create_resources(ctx: arcade.ArcadeContext): geo = geometry.cube() geo.instance(ctx.program(vertex_shader=VERTEX_SRC, fragment_shader=FRAGMENT_SRC)) assert ctx.stats.vertex_array == (created + 1, freed) - geo = None + del geo gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() @@ -164,7 +164,7 @@ def create_resources(ctx: arcade.ArcadeContext): created, freed = ctx.stats.compute_shader compute_shader = ctx.compute_shader(source=COMPUTE_SHADER_SOURCE) assert ctx.stats.compute_shader == (created + 1, freed) - compute_shader = None + del compute_shader gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() @@ -175,7 +175,7 @@ def create_resources(ctx: arcade.ArcadeContext): created, freed = ctx.stats.query query = ctx.query() assert ctx.stats.query == (created + 1, freed) - query = None + del query gc.collect() if ctx.gc_mode == "context_gc": collected = ctx.gc() diff --git a/tests/unit/gl/test_gl_types.py b/tests/unit/gl/test_gl_types.py index 2748daab84..0e0d70fc9b 100644 --- a/tests/unit/gl/test_gl_types.py +++ b/tests/unit/gl/test_gl_types.py @@ -28,7 +28,9 @@ def test_buffer_description(ctx): types.BufferDescription(ctx.buffer(reserve=16), "4f", ["in_vert", "in_normal"]) # FIXME: Non-existing normalized attribute doesn't work - # types.BufferDescription(ctx.buffer(reserve=16), '4f', ['in_vert'], normalized=['test', 'a', 'b']) + # types.BufferDescription( + # ctx.buffer(reserve=16), '4f', ['in_vert'], normalized=['test', 'a', 'b'] + # ) # Wrong buffer size. It doesn't align with the format with pytest.raises(ValueError): @@ -36,7 +38,7 @@ def test_buffer_description(ctx): def test_buffer_padding(ctx): - descr = types.BufferDescription( + types.BufferDescription( ctx.buffer(reserve=4 * 7 * 10), "2f 3x4 2f", ("in_pos", "in_vel"), diff --git a/tests/unit/gui/test_event_order.py b/tests/unit/gui/test_event_order.py index 5775379f9a..a46b0f756d 100644 --- a/tests/unit/gui/test_event_order.py +++ b/tests/unit/gui/test_event_order.py @@ -100,11 +100,11 @@ def on_hide_view(self): self.mng.disable() @window.event("on_mouse_press") - def record_window(*_): + def record_window_press(*_): events.append("Window.on_mouse_press") @window.event("on_mouse_release") - def record_window(*_): + def record_window_release(*_): events.append("Window.on_mouse_release") view = MyView() @@ -113,7 +113,8 @@ def record_window(*_): window.dispatch_event("on_mouse_release", 100, 75, 1, 0) window.dispatch_pending_events() window.hide_view() - window.remove_handler("on_mouse_press", record_window) + window.remove_handler("on_mouse_press", record_window_press) + window.remove_handler("on_mouse_release", record_window_release) assert len(events) == 3, events assert events[0] == "UIManager.on_event(UIMousePressEvent)" diff --git a/tests/unit/gui/test_exp_restricted_input.py b/tests/unit/gui/test_exp_restricted_input.py index 768cac1a1b..bc373cd36c 100644 --- a/tests/unit/gui/test_exp_restricted_input.py +++ b/tests/unit/gui/test_exp_restricted_input.py @@ -1,4 +1,3 @@ -from arcade.gui.experimental import UIPasswordInput from arcade.gui.experimental.restricted_input import UIRestrictedInput, UIIntInput, UIRegexInput diff --git a/tests/unit/gui/test_interactive_sprite_widget.py b/tests/unit/gui/test_interactive_sprite_widget.py index 6dc7bae42c..b6fc12a3c6 100644 --- a/tests/unit/gui/test_interactive_sprite_widget.py +++ b/tests/unit/gui/test_interactive_sprite_widget.py @@ -2,7 +2,7 @@ import arcade from arcade.gui import UIInteractiveSpriteWidget, UIBoxLayout -from arcade.gui.events import UIOnClickEvent, UIMousePressEvent, UIMouseReleaseEvent +from arcade.gui.events import UIOnClickEvent from arcade.gui.widgets.layout import UIAnchorLayout from . import record_ui_events diff --git a/tests/unit/gui/test_layouting_box_ortho_algorithm.py b/tests/unit/gui/test_layouting_box_ortho_algorithm.py index 55727996c9..8d5e2aca55 100644 --- a/tests/unit/gui/test_layouting_box_ortho_algorithm.py +++ b/tests/unit/gui/test_layouting_box_ortho_algorithm.py @@ -1,4 +1,4 @@ -from arcade.gui.widgets.layout import _C, _box_axis_algorithm, _box_orthogonal_algorithm +from arcade.gui.widgets.layout import _C, _box_orthogonal_algorithm def test_simple_values(window): diff --git a/tests/unit/gui/test_layouting_gridlayout.py b/tests/unit/gui/test_layouting_gridlayout.py index 281f0b0bba..a3184db31d 100644 --- a/tests/unit/gui/test_layouting_gridlayout.py +++ b/tests/unit/gui/test_layouting_gridlayout.py @@ -1,7 +1,7 @@ from pyglet.math import Vec2 from arcade import LBWH -from arcade.gui import UIAnchorLayout, UIBoxLayout, UIDummy, UIManager +from arcade.gui import UIAnchorLayout, UIBoxLayout, UIDummy from arcade.gui.widgets.layout import UIGridLayout diff --git a/tests/unit/gui/test_ninepatch.py b/tests/unit/gui/test_ninepatch.py index 32501981ee..cdb678f347 100644 --- a/tests/unit/gui/test_ninepatch.py +++ b/tests/unit/gui/test_ninepatch.py @@ -74,7 +74,6 @@ def shader_math(): This is just around to debug shader math. The shader needs to be simplified at some point. """ - atlas_size = Vec2(8, 8) atlas_size_uniform = 8 # 8 x x texture uv0 = Vec2(0.0625, 0.0625) # upper_left diff --git a/tests/unit/physics_engine/test_physics_engine.py b/tests/unit/physics_engine/test_physics_engine.py index 2bb0a084d5..e134decf99 100644 --- a/tests/unit/physics_engine/test_physics_engine.py +++ b/tests/unit/physics_engine/test_physics_engine.py @@ -1,5 +1,4 @@ import arcade -import os SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 diff --git a/tests/unit/rect/test_rect_instances.py b/tests/unit/rect/test_rect_instances.py index faed78c0ec..500fb13edd 100644 --- a/tests/unit/rect/test_rect_instances.py +++ b/tests/unit/rect/test_rect_instances.py @@ -1,6 +1,5 @@ from typing import Callable, Any -import pytest from pyglet.math import Vec2 from arcade.types.rect import Rect, LBWH, LRBT, XYRR, XYWH diff --git a/tests/unit/resources/test_handles.py b/tests/unit/resources/test_handles.py index 6fa242e328..66bd803942 100644 --- a/tests/unit/resources/test_handles.py +++ b/tests/unit/resources/test_handles.py @@ -1,6 +1,5 @@ from pathlib import Path import pytest -import arcade from arcade import resources MODULE_DIR = Path(__file__).parent.parent.resolve() diff --git a/tests/unit/shape_list/test_buffered_drawing.py b/tests/unit/shape_list/test_buffered_drawing.py index 8771187ede..b1e51460af 100644 --- a/tests/unit/shape_list/test_buffered_drawing.py +++ b/tests/unit/shape_list/test_buffered_drawing.py @@ -5,7 +5,6 @@ from arcade.shape_list import ( ShapeElementList, create_line, - create_ellipse_outline, create_ellipse_filled, create_ellipse_filled_with_colors, create_rectangle_filled, diff --git a/tests/unit/sprite/test_sprite.py b/tests/unit/sprite/test_sprite.py index 50febcc5c7..bdfb9b34ca 100644 --- a/tests/unit/sprite/test_sprite.py +++ b/tests/unit/sprite/test_sprite.py @@ -5,7 +5,6 @@ import pytest as pytest import arcade -from pyglet.math import Vec2 frame_counter = 0 SPRITE_TEXTURE_FEMALE_PERSON_IDLE = arcade.load_texture( diff --git a/tests/unit/sprite/test_sprite_animated_walking.py b/tests/unit/sprite/test_sprite_animated_walking.py index 2d3f7df41c..2f46d06366 100644 --- a/tests/unit/sprite/test_sprite_animated_walking.py +++ b/tests/unit/sprite/test_sprite_animated_walking.py @@ -1,4 +1,3 @@ -import pytest import arcade COIN_SCALE = 0.5 diff --git a/tests/unit/sprite/test_sprite_texture_animation.py b/tests/unit/sprite/test_sprite_texture_animation.py index 7ed6b5a5ae..765150cd2a 100644 --- a/tests/unit/sprite/test_sprite_texture_animation.py +++ b/tests/unit/sprite/test_sprite_texture_animation.py @@ -1,4 +1,3 @@ -import math import pytest import arcade diff --git a/tests/unit/spritelist/test_spatial_hash.py b/tests/unit/spritelist/test_spatial_hash.py index f2dd18833e..20f33f1a02 100644 --- a/tests/unit/spritelist/test_spatial_hash.py +++ b/tests/unit/spritelist/test_spatial_hash.py @@ -14,12 +14,12 @@ def test_create(): def test_incorrect_str_input(): with pytest.raises(TypeError): - sh = SpatialHash(cell_size="10") + SpatialHash(cell_size="10") def test_incorrect_inf_input(): with pytest.raises(TypeError): - sh = SpatialHash(cell_size=float("inf")) + SpatialHash(cell_size=float("inf")) def test_reset(): diff --git a/tests/unit/spritelist/test_spritesequence.py b/tests/unit/spritelist/test_spritesequence.py index 2212c241e0..d39aec0b51 100644 --- a/tests/unit/spritelist/test_spritesequence.py +++ b/tests/unit/spritelist/test_spritesequence.py @@ -13,7 +13,7 @@ def test_collective_draw(window: arcade.Window) -> None: sprite_list2.append(_CustomSpriteSolidColor(16, 16, color=(255, 0, 0, 1))) # It really is a SpriteList with a good type; this would not typecheck otherwise - custom_sprite: _CustomSpriteSolidColor = sprite_list2[0] # assert_type + custom_sprite: _CustomSpriteSolidColor = sprite_list2[0] # noqa: F841 assert_type # Assert that SpriteSequence is truly covariant: # It can be used as a common type for different types of SpriteLists. @@ -21,7 +21,7 @@ def test_collective_draw(window: arcade.Window) -> None: sprite_list1, sprite_list2, ] - sprite: arcade.Sprite = scene[0][0] # assert_type + sprite: arcade.Sprite = scene[0][0] # noqa: F841 assert_type # We can collectively draw all the SpriteSequences. for sprite_list in scene: diff --git a/tests/unit/test_arcade.py b/tests/unit/test_arcade.py index 243afe5cad..b6235dd776 100644 --- a/tests/unit/test_arcade.py +++ b/tests/unit/test_arcade.py @@ -2,7 +2,7 @@ from copy import copy import logging import arcade -from arcade import * +from arcade import * # noqa: F403 This test checks what a star import gives you # TODO: double-check whether this is actually the right solution? diff --git a/tests/unit/test_clock.py b/tests/unit/test_clock.py index abed4d9a1e..eaae1abcc3 100644 --- a/tests/unit/test_clock.py +++ b/tests/unit/test_clock.py @@ -1,6 +1,6 @@ import pytest as pytest -from arcade.clock import Clock, FixedClock, GLOBAL_CLOCK, GLOBAL_FIXED_CLOCK +from arcade.clock import GLOBAL_CLOCK, GLOBAL_FIXED_CLOCK def test_clock(): diff --git a/tests/unit/test_math.py b/tests/unit/test_math.py index 405c4cc7f3..8e382de610 100644 --- a/tests/unit/test_math.py +++ b/tests/unit/test_math.py @@ -7,9 +7,21 @@ import math -import arcade from pytest import approx -from arcade.math import * +from arcade.math import ( + lerp, + lerp_2d, + lerp_angle, + rand_angle_360_deg, + rand_angle_spread_deg, + rand_in_circle, + rand_in_rect, + rand_on_circle, + rand_on_line, + rand_vec_magnitude, + rand_vec_spread_deg, + rotate_around_point, +) from arcade.types import LBWH diff --git a/tests/unit/text/test_text_error_handling.py b/tests/unit/text/test_text_error_handling.py index 274da85d3e..703e1fa73e 100644 --- a/tests/unit/text/test_text_error_handling.py +++ b/tests/unit/text/test_text_error_handling.py @@ -9,7 +9,8 @@ def test_text_instance_raise_multiline_error(window): assert ( e.value.args[0] - == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, but got 0." + == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, " + "but got 0." ) with pytest.raises(ValueError) as e: @@ -17,7 +18,8 @@ def test_text_instance_raise_multiline_error(window): assert ( e.value.args[0] - == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, but got None." + == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, " + "but got None." ) @@ -29,7 +31,8 @@ def test_text_function_raise_multiline_error(window): assert ( e.value.args[0] - == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, but got 0." + == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, " + "but got 0." ) with pytest.raises(ValueError) as e: @@ -37,5 +40,6 @@ def test_text_function_raise_multiline_error(window): assert ( e.value.args[0] - == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, but got None." + == "The 'width' parameter must be set to a non-zero value when 'multiline' is True, " + "but got None." ) diff --git a/tests/unit/texture/test_texture.py b/tests/unit/texture/test_texture.py index 5d535516f5..93488591c8 100644 --- a/tests/unit/texture/test_texture.py +++ b/tests/unit/texture/test_texture.py @@ -15,8 +15,8 @@ def test_create(): == "7a12e561363385e9dfeeab326368731c030ed4b374e7f5897ac819159d2884c5" ) assert ( - texture.cache_name - == f"{texture.image_data.hash}|{texture._vertex_order}|{texture.hit_box_algorithm.cache_name}|" + texture.cache_name == f"{texture.image_data.hash}|{texture._vertex_order}|" + f"{texture.hit_box_algorithm.cache_name}|" ) with pytest.raises(TypeError): diff --git a/tests/unit/texture/test_texture_transform_render.py b/tests/unit/texture/test_texture_transform_render.py index bb5b6baf9b..c6603a494b 100644 --- a/tests/unit/texture/test_texture_transform_render.py +++ b/tests/unit/texture/test_texture_transform_render.py @@ -7,7 +7,6 @@ from pyglet.math import Mat4 from PIL import Image, ImageDraw from arcade.texture.transforms import ( - Transform, Rotate90Transform, Rotate180Transform, Rotate270Transform, diff --git a/tests/unit/tilemap/test_tilemap_objects.py b/tests/unit/tilemap/test_tilemap_objects.py index 73a31231df..2219934dc2 100644 --- a/tests/unit/tilemap/test_tilemap_objects.py +++ b/tests/unit/tilemap/test_tilemap_objects.py @@ -28,7 +28,7 @@ def test_one(): assert sprite_1.width == 400 assert sprite_1.height == 1000 assert sprite_1.angle == -45 - assert sprite_1.visible == False + assert sprite_1.visible is False # # Test type and name properties diff --git a/tests/unit/window/test_view.py b/tests/unit/window/test_view.py index ac5ab72726..481d16341a 100644 --- a/tests/unit/window/test_view.py +++ b/tests/unit/window/test_view.py @@ -1,6 +1,6 @@ from unittest.mock import Mock -from arcade import Window, View, color, get_image +from arcade import View, color def test_on_show_view_called(window):