Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Jan 17, 2025
1 parent ce48d47 commit eaacbb4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
shell: bash -el {0}
run: |
python -m pip install --upgrade pip
python -m pip install tox pytest hypothesis numdifftools pathos setuptools
python -m pip install tox pytest hypothesis numdifftools pathos setuptools statsmodels
- name: Print OS, machine info
shell: bash -el {0}
run: |
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ loguru
# click<=8.0.4
gprof2dot
py-cpuinfo
statsmodels
3 changes: 3 additions & 0 deletions tests/test_fake_toas.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from pint.fitter import GLSFitter, DownhillGLSFitter
from pinttestdata import datadir
import pytest
from statsmodels.stats.diagnostic import acorr_ljungbox


def roundtrip(toas, model):
Expand Down Expand Up @@ -565,3 +566,5 @@ def test_simulate_wideband_dmgp():
/ len(t)
> 10
)

assert all(acorr_ljungbox(t.get_dms() - m.total_dm(t)).lb_pvalue < 1e-5)
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ deps =
numdifftools
pathos
setuptools
statsmodels
commands =
pip freeze
!cov: pytest --reruns 5
Expand Down Expand Up @@ -92,6 +93,7 @@ deps =
pytest-rerunfailures
coverage
hypothesis<=6.72.0
statsmodels
commands =
pytest --reruns 5

Expand Down

0 comments on commit eaacbb4

Please sign in to comment.