Skip to content

Commit

Permalink
check if abbreviation can be resolved
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Borreguero <[email protected]>
  • Loading branch information
jmborr committed Feb 17, 2024
1 parent 56f26f2 commit 83c38a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
git submodule add --force https://code.ornl.gov/sns-hfir-scse/infrastructure/test-data/liquidsreflectometer-data.git tests/data/liquidsreflectometer-data
git submodule update --init
python -m pytest -vv --cov=. --cov-report=xml --cov-report=term test
python -m pytest -vv --cov=. --cov-report=xml --cov-report=term test/test_reduction.py::test_info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
4 changes: 4 additions & 0 deletions reduction/test/test_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def test_info(nexus_dir):
Test utility functions to get basic info
"""
with amend_config(data_dir=nexus_dir):
from mantid.kernel import ConfigService
config = ConfigService.Instance()
print(f"\nMANTID DATA DIRS = {config['datasearch.directories']}\n")
ws_sc = mtd_api.Load(f"{nexus_dir}/REF_L_198409.nxs.h5")
ws_sc = mtd_api.Load("REF_L_198409")
wl_min, wl_max = event_reduction.get_wl_range(ws_sc)
assert(wl_min == 13.7)
Expand Down

0 comments on commit 83c38a4

Please sign in to comment.