From 2686d310a01b18a0f4cc5e4cb2bf29859e372c88 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Thu, 10 Jul 2025 15:13:51 +0200 Subject: [PATCH] fix: Remove redundant topic name extraction --- tests/test_fetch_doi_mock.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_fetch_doi_mock.py b/tests/test_fetch_doi_mock.py index d63effe..ecdd7b5 100644 --- a/tests/test_fetch_doi_mock.py +++ b/tests/test_fetch_doi_mock.py @@ -97,11 +97,6 @@ def test_subject_mapper(fake_openalex_response): # Extract topics from the OpenAlex response topics = fake_openalex_response.get("topics", []) - # Convert topics to strings - we'll use display_name - topic_names = [] - if topics: - topic_names = [topic.get("display_name") for topic in topics if topic.get("display_name")] - # Get subjects using the class method subjects = SubjectMapper.get_subjects({"topics": topics})