From 04bcb8567b2667c9669f12e9ce6a057628851aff Mon Sep 17 00:00:00 2001 From: stringertheory Date: Sun, 4 Feb 2024 19:31:10 -0600 Subject: [PATCH] test main-only testing with known failure --- .github/workflows/main.yml | 2 +- tests/test_eventseries.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f8ef6ee..42249b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: - name: just add pytest for running tests run: poetry run python -m pip install -U pytest - - name: Check if documentation can be built + - name: run the tests that don't require development dependencies run: make test-only-main tox: diff --git a/tests/test_eventseries.py b/tests/test_eventseries.py index 44dbfba..bfe5f7a 100644 --- a/tests/test_eventseries.py +++ b/tests/test_eventseries.py @@ -1,3 +1,5 @@ +import pandas as pd + from traces import EventSeries @@ -10,6 +12,13 @@ def test_init_data(): assert es[3] == 8.7 assert es[4] == 10 + data = [ + "2018-10-15T16:45:01", + "2019-04-16T13:08:26", + ] + es = EventSeries(pd.to_datetime(data)) + assert es[0] == es[0] + def test_count_active(): es_open = EventSeries(