Skip to content

Fix test function name in test_score2.py #4

@fbraza

Description

@fbraza

Issue Description

The test function in test_score2.py has an incorrect name that doesn't match what it's testing.

Problem

  • tests/test_score2.py:17 - Function is named test_phenoage but it's testing the SCORE2 algorithm

Current Code

def test_phenoage(filename, expected):
    # Get the actual fixture value using request.getfixturevalue
    age, pred_risk, pred_risk_category = compute.cardiovascular_risk(OUT_FILEPATH / filename)
    ...

Expected Fix

def test_score2(filename, expected):
    # Get the actual fixture value using request.getfixturevalue
    age, pred_risk, pred_risk_category = compute.cardiovascular_risk(OUT_FILEPATH / filename)
    ...

Impact

This is a simple naming issue but should be fixed for code clarity and consistency.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions