From d45820e27703ef61e16bac01aea199413d09eef6 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 24 Sep 2024 11:07:59 +0200 Subject: [PATCH] fix test_data - added downloading --- .gitignore | 1 + data/osu2008/data.hdf5 | 3 --- pyproject.toml | 18 +----------------- test/test_data.py | 2 +- 4 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 data/osu2008/data.hdf5 diff --git a/.gitignore b/.gitignore index f7db588..fb3ac1b 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ scripts build/ dist/ *.egg-info/ +data.hdf5 diff --git a/data/osu2008/data.hdf5 b/data/osu2008/data.hdf5 deleted file mode 100644 index 0b8c328..0000000 --- a/data/osu2008/data.hdf5 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b676735cb73f32312696886c3d0190dffc7b5fbbf230a953095c3ee8aed814f5 -size 23208992 diff --git a/pyproject.toml b/pyproject.toml index 22e6d44..038dd78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,3 @@ -# This section describes the requirements of the build/installation -# process itself. Being able to do this was the original reason to -# introduce pyproject.toml [build-system] requires = [ "setuptools >=61", @@ -8,9 +5,7 @@ requires = [ ] build-backend = "setuptools.build_meta" -# This section provides general project metadata that is used across -# a variety of build tools. Notably, the version specified here is the -# single source of truth for CODES's version + [project] name = "CODES" description = "Benchmarking tool for neural (chemical) ODE surrogate models" @@ -55,23 +50,12 @@ dev = [ # ] -# The following section contains setuptools-specific configuration -# options. For a full reference of available options, check the overview -# at https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html [tool.setuptools] packages = [ "codes", ] -# Configure setuptools_scm, which extracts the version number from -# the version control system. For more information see its documentation: -# https://github.com/pypa/setuptools_scm -# [tool.setuptools_scm] -# version_scheme = "post-release" -# local_scheme = "node-and-date" -# write_to = "CODES/_version.py" -# The following is the configuration for the pytest test suite [tool.pytest.ini_options] testpaths = [ "test", diff --git a/test/test_data.py b/test/test_data.py index 67a42d1..258efa1 100644 --- a/test/test_data.py +++ b/test/test_data.py @@ -16,6 +16,7 @@ def dataset(request: pytest.FixtureRequest): def test_check_and_load_data(dataset): try: + download_data(dataset) _ = check_and_load_data(dataset) except Exception as e: pytest.fail(f"Failed to load data for {dataset}: {e}") @@ -32,4 +33,3 @@ def test_download_data(dataset, tmp_path: Path): def test_download_data_invalid_dataset(): with pytest.raises(ValueError): download_data("invalid_dataset") -