Skip to content

Commit

Permalink
test: skip whoop tests if no config
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 21, 2023
1 parent cf4e795 commit 75de019
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_load_whoop.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import pytest
from quantifiedme.config import load_config
from quantifiedme.load.whoop import load_heartrate_df, load_sleep_df

has_whoop_config = load_config().get("data", {}).get("whoop", False)


@pytest.mark.skipif(has_whoop_config, reason="no whoop config")
def test_load_whoop_heartrate():
df = load_heartrate_df()
print(df.head())


@pytest.mark.skipif(has_whoop_config, reason="no whoop config")
def test_load_whoop_sleep():
df = load_sleep_df()
print(df.head())

0 comments on commit 75de019

Please sign in to comment.