Skip to content

Commit

Permalink
make sure loculus is not called in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 23, 2024
1 parent ca0d0d9 commit cd19482
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ingest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,14 @@ The ingest pipeline requires config files, found in the directory `config`. The

## Testing

Currently, there is not automated testing other than running the pipeline manually and in preview deployments.
Tests can be found in the `tests` folder, they can be run using

```sh
micromamba activate loculus-ingest
pytest tests/
```

`.github/workflows/ingest-tests.yaml` runs these tests,

## Roadmap

Expand Down
1 change: 1 addition & 0 deletions ingest/tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def test_snakemake():
destination_directory = CONFIG_DIR
source_directory = TEST_DATA_DIR / "config_cchf"
copy_files(source_directory, destination_directory)
run_snakemake("get_loculus_submissions", touch=True) # Do not call_loculus
run_snakemake("group_segments")
run_snakemake("get_previous_submissions", touch=True) # Do not call_loculus
run_snakemake("compare_hashes")
Expand Down

0 comments on commit cd19482

Please sign in to comment.