Skip to content

Commit

Permalink
Update tests to be run
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcurbelo committed Sep 2, 2024
1 parent d85932f commit 2b00948
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go-rxr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Run tests
run: |
python -m unittest discover -s TESTS -p "test_data_fitting.py"
# python -m unittest discover -s TESTS -p "test_data_structure.py"
# python -m unittest discover -s TESTS -p "test_density.py"
# python -m unittest discover -s TESTS -p "test_material_model.py"
# python -m unittest discover -s TESTS -p "test_material_structure.py"
# python -m unittest discover -s TESTS -p "test_reflectivity.py
python -m unittest discover -s TESTS -p "test_data_structure.py"
python -m unittest discover -s TESTS -p "test_density.py"
python -m unittest discover -s TESTS -p "test_material_model.py"
python -m unittest discover -s TESTS -p "test_material_structure.py"
python -m unittest discover -s TESTS -p "test_reflectivity.py
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ __pycache__/
venv-go-rxr/
venv-go-rxr-paper/
venv-gorxr310/
# **/*.h5
.idea/
GO_RXR.egg-info/*
UNKNOWN.egg-info/*
Expand Down
10 changes: 6 additions & 4 deletions TESTS/test_data_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ class TestDataFitting(unittest.TestCase):
def __init__(self, methodName: str = "runTest") -> None:
super().__init__(methodName)

parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
self.TESTS_PATH = os.path.join(parent_dir, 'TESTS')
# parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
# self.TESTS_PATH = os.path.join(parent_dir, 'TESTS')

print('listdir', os.listdir(self.TESTS_PATH))
print('listdir', os.listdir(self.TESTS_PATH + '/test_data'))
# print('listdir', os.listdir(self.TESTS_PATH))
# print('listdir', os.listdir(self.TESTS_PATH + '/test_data'))

self.TESTS_PATH = TESTS_PATH

self.filename = 'Pim4uc_test.h5'
self.my_path = self.TESTS_PATH + '/test_data/' + self.filename
Expand Down

0 comments on commit 2b00948

Please sign in to comment.