Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing Tests in TestXPHSCalendar #452

Open
EdwardBetts opened this issue Feb 8, 2025 · 0 comments
Open

Failing Tests in TestXPHSCalendar #452

EdwardBetts opened this issue Feb 8, 2025 · 0 comments

Comments

@EdwardBetts
Copy link

Multiple tests in TestXPHSCalendar are failing.

============================= test session starts ==============================
platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python
codspeed: 3.1.0 (disabled, mode: walltime, timer_resolution: 1.0ns)
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/edward/src/2025/vendor/exchange_calendars/.hypothesis/examples'))
rootdir: /home/edward/src/2025/vendor/exchange_calendars
configfile: setup.cfg
plugins: cov-5.0.0, respx-0.21.1, mypy-plugins-3.2.0, requests_mock-1.12.1, datadir-1.4.1+ds, anyio-4.8.0, aresponses-3.0.0, asyncio-0.25.1, mock-3.14.0, hypothesis-6.125.2, httpx-0.34.0, check-2.4.1, syrupy-4.8.1, time-machine-2.16.0, Faker-33.1.0, codspeed-3.1.0, pytest_httpserver-1.1.1, timeout-2.3.1, pytest_freezer-0.4.9, xdist-3.6.1, tornasync-0.6.0.post2, lazy-fixtures-0.0.0, typeguard-4.4.1, aiohttp-1.0.5, regressions-2.5.0+ds, kgb-7.2, repeat-0.9.3
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None
collecting ... collected 142 items

tests/test_xphs_calendar.py::TestXPHSCalendar::test_testbase_integrity PASSED [  0%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_base_integrity PASSED [  1%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_calculated_against_csv PASSED [  2%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_start_end PASSED     [  2%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_invalid_input PASSED [  3%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_bound_min PASSED     [  4%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_bound_max PASSED     [  4%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sanity_check_session_lengths PASSED [  5%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_adhoc_holidays_specification PASSED [  6%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_daylight_savings PASSED [  7%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions PASSED      [  7%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_opens_closes_break_starts_ends FAILED [  8%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[both] FAILED [  9%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[both] FAILED [  9%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_calendar_bounds_properties[both] PASSED [ 10%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minute_methods[both] PASSED [ 11%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minutes[both] PASSED [ 11%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_trading_minute[both] PASSED [ 12%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_break_minute[both] PASSED [ 13%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_on_minute[both] PASSED [ 14%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[both] PASSED [ 14%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[both] FAILED [ 15%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[both-next] PASSED [ 16%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[both-next] PASSED [ 16%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[left-next] PASSED [ 17%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[left-next] PASSED [ 18%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[left] FAILED [ 19%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[left] FAILED [ 19%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_calendar_bounds_properties[left] PASSED [ 20%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minute_methods[left] PASSED [ 21%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minutes[left] PASSED [ 21%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_trading_minute[left] PASSED [ 22%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_break_minute[left] PASSED [ 23%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_on_minute[left] PASSED [ 23%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[left] PASSED [ 24%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[left] FAILED [ 25%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[left-previous] PASSED [ 26%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[left-previous] PASSED [ 26%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[both-previous] PASSED [ 27%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[both-previous] PASSED [ 28%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[right-previous] PASSED [ 28%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[right-previous] PASSED [ 29%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[right-next] PASSED [ 30%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[right-next] PASSED [ 30%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[right] FAILED [ 31%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[right] FAILED [ 32%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_calendar_bounds_properties[right] PASSED [ 33%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minute_methods[right] PASSED [ 33%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minutes[right] PASSED [ 34%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_trading_minute[right] PASSED [ 35%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_break_minute[right] PASSED [ 35%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_on_minute[right] PASSED [ 36%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[right] PASSED [ 37%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[right] FAILED [ 38%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[right-none] PASSED [ 38%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[right-none] PASSED [ 39%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[left-none] PASSED [ 40%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[left-none] PASSED [ 40%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[both-none] PASSED [ 41%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[both-none] PASSED [ 42%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[neither-none] PASSED [ 42%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[neither-none] PASSED [ 43%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[neither-previous] PASSED [ 44%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[neither-previous] PASSED [ 45%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[neither-next] PASSED [ 45%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_trading_minute[neither-next] PASSED [ 46%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[neither] FAILED [ 47%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[neither] FAILED [ 47%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_calendar_bounds_properties[neither] PASSED [ 48%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minute_methods[neither] PASSED [ 49%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_minutes[neither] PASSED [ 50%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_trading_minute[neither] PASSED [ 50%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_break_minute[neither] PASSED [ 51%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_on_minute[neither] PASSED [ 52%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[neither] PASSED [ 52%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[neither] FAILED [ 53%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_past_session[neither] PASSED [ 54%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_future_session[neither] PASSED [ 54%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset[neither] PASSED [ 55%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset_by_sessions[neither] PASSED [ 56%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_in_range[neither] PASSED [ 57%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_window[neither] PASSED [ 57%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_distance[neither] PASSED [ 58%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_to_sessions[neither] PASSED [ 59%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes[neither] PASSED [ 59%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes_count[neither] PASSED [ 60%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_past_session[right] PASSED [ 61%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_future_session[right] PASSED [ 61%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset[right] PASSED [ 62%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset_by_sessions[right] PASSED [ 63%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_in_range[right] PASSED [ 64%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_window[right] PASSED [ 64%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_distance[right] PASSED [ 65%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_to_sessions[right] PASSED [ 66%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes[right] PASSED [ 66%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes_count[right] PASSED [ 67%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_past_session[left] PASSED [ 68%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_future_session[left] PASSED [ 69%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset[left] PASSED [ 69%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset_by_sessions[left] PASSED [ 70%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_in_range[left] PASSED [ 71%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_window[left] PASSED [ 71%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_distance[left] PASSED [ 72%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_to_sessions[left] PASSED [ 73%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes[left] PASSED [ 73%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes_count[left] PASSED [ 74%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_past_session[both] PASSED [ 75%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_future_session[both] PASSED [ 76%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset[both] PASSED [ 76%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_offset_by_sessions[both] PASSED [ 77%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_in_range[both] PASSED [ 78%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_window[both] PASSED [ 78%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_distance[both] PASSED [ 79%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_to_sessions[both] PASSED [ 80%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes[both] PASSED [ 80%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_minutes_count[both] PASSED [ 81%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_has_break PASSED     [ 82%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_regular_holidays_sample PASSED [ 83%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_adhoc_holidays_sample PASSED [ 83%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_non_holidays_sample PASSED [ 84%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_late_opens_sample PASSED [ 85%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_early_closes_sample PASSED [ 85%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_early_closes_sample_time PASSED [ 86%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_early_closes_weekdays PASSED [ 87%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_early_closes_weekdays_time PASSED [ 88%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_non_early_closes_sample PASSED [ 88%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_non_early_closes_sample_time PASSED [ 89%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_late_opens FAILED    [ 90%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_early_closes PASSED  [ 90%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_open_close_break_start_end PASSED [ 91%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_has_break PASSED [ 92%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_next_prev_session PASSED [ 92%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_session_offset PASSED [ 93%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_session PASSED    [ 94%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_date_to_session PASSED [ 95%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_open_close FAILED [ 95%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_in_range PASSED [ 96%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_has_break PASSED [ 97%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_window PASSED [ 97%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_sessions_distance PASSED [ 98%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_trading_index PASSED [ 99%]
tests/test_xphs_calendar.py::TestXPHSCalendar::test_deprecated PASSED    [100%]

============================= slowest 15 durations =============================
1.36s setup    tests/test_xphs_calendar.py::TestXPHSCalendar::test_calculated_against_csv
0.81s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_bound_min
0.24s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[neither-none]
0.24s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_bound_max
0.19s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[left]
0.18s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[neither]
0.16s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_start_end
0.13s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[both]
0.12s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minute_to_session[right-previous]
0.12s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[neither]
0.12s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[both]
0.11s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_date_to_session
0.11s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[right]
0.10s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[right]
0.10s call     tests/test_xphs_calendar.py::TestXPHSCalendar::test_is_open_at_time[left]
=========================== short test summary info ============================
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_opens_closes_break_starts_ends
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[both]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[both] - As...
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[both]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[left]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[left] - As...
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[left]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[right]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[right] - A...
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[right]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes_properties[neither]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_minutes[neither]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_minute[neither]
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_late_opens - Asser...
FAILED tests/test_xphs_calendar.py::TestXPHSCalendar::test_prev_next_open_close
======================== 15 failed, 127 passed in 5.58s ========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant