From e81050fb5079612b8c9ad02c43ca5962cefe4a0a Mon Sep 17 00:00:00 2001 From: tdruez Date: Fri, 23 Feb 2024 18:37:57 +0100 Subject: [PATCH] Fix failing tests #50 Signed-off-by: tdruez --- CHANGELOG.rst | 3 +++ component_catalog/tests/test_models.py | 6 +++--- product_portfolio/tests/test_models.py | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index abbb04b3..094a4f1c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,9 @@ Release notes ### Version 5.1.0-dev +- Upgrade Python version to 3.12 + https://github.com/nexB/dejacode/issues/50 + - Replace Celery by RQ for async job queue and worker. https://github.com/nexB/dejacode/issues/6 diff --git a/component_catalog/tests/test_models.py b/component_catalog/tests/test_models.py index 801af492..df93b1fd 100644 --- a/component_catalog/tests/test_models.py +++ b/component_catalog/tests/test_models.py @@ -2126,7 +2126,7 @@ def test_component_model_as_cyclonedx(self): self.component1.homepage_url = "https://homepage.url" self.component1.notice_text = "Notice" cyclonedx_data = self.component1.as_cyclonedx() - expected_repr = "" + expected_repr = "" self.assertEqual(expected_repr, repr(cyclonedx_data)) expected = { "aboutcode:homepage_url": "https://homepage.url", @@ -2150,8 +2150,8 @@ def test_package_model_as_cyclonedx(self): dataspace=self.dataspace, ) cyclonedx_data = package.as_cyclonedx() - expected_repr = "" - self.assertEqual(expected_repr, repr(cyclonedx_data)) + expected = "" + self.assertEqual(expected, repr(cyclonedx_data)) expected = { "aboutcode:download_url": "https://download.url", "aboutcode:filename": "package.zip", diff --git a/product_portfolio/tests/test_models.py b/product_portfolio/tests/test_models.py index 836b6ea4..c17c064c 100644 --- a/product_portfolio/tests/test_models.py +++ b/product_portfolio/tests/test_models.py @@ -724,8 +724,8 @@ def test_product_relationship_models_as_spdx(self): self.assertEqual(expected, pp1.as_spdx().as_dict()) def test_product_model_as_cyclonedx(self): - expected_repr = "" - self.assertEqual(expected_repr, repr(self.product1.as_cyclonedx())) + expected = "" + self.assertEqual(expected, repr(self.product1.as_cyclonedx())) def test_product_portfolio_scancode_project_model_can_start_import(self): scancode_project = ScanCodeProject.objects.create(