From de20673327341979b11751d3a4dd867f139c45e7 Mon Sep 17 00:00:00 2001 From: pushfoo <36696816+pushfoo@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:34:55 -0400 Subject: [PATCH 1/2] Add temp fix for unit test failure --- tests/unit/test_key.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_key.py b/tests/unit/test_key.py index cb1de6d39..1fe47fbcb 100644 --- a/tests/unit/test_key.py +++ b/tests/unit/test_key.py @@ -2,4 +2,7 @@ def test_key(): from arcade import key names = key.__dict__.keys() - assert 214 == len(names) + # temp fix which will be replaced with fuller, more meaningful + # tests in the coming days. The values are as follows: + # 214 key constants + from __future__ import annotations + assert 215 == len(names) From 1789e073e46a467c07a05ef73bb81105e7b0779d Mon Sep 17 00:00:00 2001 From: pushfoo <36696816+pushfoo@users.noreply.github.com> Date: Mon, 11 Sep 2023 11:19:36 -0400 Subject: [PATCH 2/2] One more test temp fix --- tests/unit/color/test_module_color.py | 4 ++-- tests/unit/color/test_module_csscolor.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/color/test_module_color.py b/tests/unit/color/test_module_color.py index 5c5d2a9ac..7095819e8 100644 --- a/tests/unit/color/test_module_color.py +++ b/tests/unit/color/test_module_color.py @@ -2,5 +2,5 @@ def test_colors(): from arcade import color names = color.__dict__.keys() - # number of colors + 1 import - assert 1013 + 1 == len(names) + # number of colors + 1 real import + 1 annotations + assert 1013 + 1 + 1 == len(names) diff --git a/tests/unit/color/test_module_csscolor.py b/tests/unit/color/test_module_csscolor.py index f238c95ec..c23e062e6 100644 --- a/tests/unit/color/test_module_csscolor.py +++ b/tests/unit/color/test_module_csscolor.py @@ -2,5 +2,5 @@ def test_csscolors(): from arcade import csscolor names = csscolor.__dict__.keys() - # number of colors + 1 import - assert 156 + 1 == len(names) + # number of colors + 1 import + 1 annotations + assert 156 + 1 + 1 == len(names)