Aminsinichi / wearable-hrv

A Python package for the validation of heart rate and heart rate variability in wearables
MIT License
9 stars 2 forks source link

Tests rely on hardcoded path #5

Closed AKuederle closed 6 months ago

AKuederle commented 7 months ago

At the moment the testfiles try to add hardcoed paths to the sys.path

https://github.com/Aminsinichi/wearable-hrv/blob/ac22c3784c3952a67536c9c976a755827c136dc5/tests/test_group/test_group.py#L3

https://github.com/Aminsinichi/wearable-hrv/blob/ac22c3784c3952a67536c9c976a755827c136dc5/tests/test_individual/test_individual.py#L2

That should be adapted to make it possible to run the tests on every system without modifieing the files

Aminsinichi commented 7 months ago

Currently the path is dynamically determined based on path = os.path.dirname(os.path.abspath(__file__)). Additionally, a few more tests have been added based on the newly added core features. Related commit