Skip to content

Tests currently fail in pytest #6

@Onoddil

Description

@Onoddil

Currently experiencing a few errors when invoking pytest.

Installed with pip3 install -r requirements.txt, I get two errors in test_models.py and one in test_serializers.py

In models.py, we hit the error ValueError: inflammation array should be 2-dimensional -- I think this is caused by expecting a TypeError in the test, but raising a ValueError in the code, so this just needs a unification of the error types raised and expected.

In serializers.py we get At index 0 diff: <inflammation.models.Patient object at 0x110761450> != <inflammation.models.Patient object at 0x110760a00>, suggesting that the data we load back in aren't the same as those we created initially. This is likely fine, as the data being loaded shouldn't exactly be the same, so we should test the data within the file itself as opposed to the file.

Metadata

Metadata

Assignees

Labels

SHShould haveinvestigatequestionFurther information is requested

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions