Skip to content

Commit

Permalink
Merge branch 'main' into james/develop_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshod5 committed May 16, 2024
2 parents b80121e + f35e13c commit 2e426fe
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 219 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ docker exec -it mast-api python -m src.api.create /code/data/metadata/mini
### Running Unit Tests
Verify everything is setup correctly by running the unit tests.

To run the unit tests you may use `pytest` like so:
To run the unit tests, input the following command inside your environment:

```bash
python -m pytest tests
pytest -rsx tests/ --data-path="INSERT FULL PATH TO DATA HERE"
```

This will run some unit tests for the REST and GraphQL APIs against the data in the database.
The data path will be will be along the lines of `~/fair-mast/data/metadata/mini`.

This will run some unit tests for the REST and GraphQL APIs against a testing database, created from the data in `--data-path`.

### Uploading Data to the Minio Storage

Expand Down
134 changes: 0 additions & 134 deletions data_creation_for_test.py

This file was deleted.

1 change: 1 addition & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ dependencies:
- gql
- ipykernel
- requests_toolbelt
- intake-xarray

Loading

0 comments on commit 2e426fe

Please sign in to comment.