Skip to content

Commit

Permalink
adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanfacchinetti committed Feb 8, 2024
1 parent e84bca6 commit 1a61a4e
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 8,003 deletions.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ requires-python = ">=3.6"
dev = []

[project.urls]
Homepage = "https://github.com/gaetanfacchinetti/HYREC-2"
Homepage = "https://github.com/gaetanfacchinetti/HYREC-2"

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
1 change: 0 additions & 1 deletion src/pyhyrec.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,6 @@ Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cython
Requires-Dist: numpy
Requires-Dist: warnings
Provides-Extra: dev

# HYREC-2
Expand Down
1 change: 0 additions & 1 deletion src/pyhyrec.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cython
numpy
warnings

[dev]
Empty file added tests/__init__.py
Empty file.
Binary file added tests/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added tests/__pycache__/test.cpython-39-pytest-6.2.4.pyc
Binary file not shown.
Binary file added tests/__pycache__/test.cpython-39-pytest-8.0.0.pyc
Binary file not shown.
8,000 changes: 0 additions & 8,000 deletions tests/output_xe.dat

This file was deleted.

8 changes: 8 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pyhyrec as pyhy

def test_default_output():

inj_params = pyhy.init_INPUT_INJ_PARAMS(0., 0., 0., 0., 0., 0., 0., 0, 0., 1., 0.)
cosmo_params = pyhy.init_INPUT_COSMOPARAMS(6.735837e-01, 2.7255, 0.0494142797907188, 0.31242079216478097, 0., -1, 0, 3.046, 1.0, 0.06, 0., 0., 0.245, 1., 1.)

z, xe, Tm = pyhy.call_run_hyrec(cosmo_params, inj_params)

0 comments on commit 1a61a4e

Please sign in to comment.