fix: Remove redundant topic name extraction

This commit is contained in:
Alexander Minges 2025-07-10 15:13:51 +02:00
parent d8036fea2f
commit 2686d310a0
Signed by: Athemis
SSH key fingerprint: SHA256:TUXshgulbwL+FRYvBNo54pCsI0auROsSEgSvueKbkZ4

View file

@ -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})