Skip to content

Commit

Permalink
Add more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Jul 22, 2024
1 parent 13cec27 commit f46aaa2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ jobs:
run: scripts/install_pycfml_from_wheel.sh

- name: Debug pyCFML import
shell: bash
run: python3 tests/unit_tests/pyCFML/test__import_pycrysfml.py

- name: Debug pyCFML calc diffraction pattern
shell: bash
run: python3 tests/functional_tests/pyCFML/cfml_utilities/powder_pattern_from_json/test__powder_pattern_from_json.py

Expand Down
28 changes: 28 additions & 0 deletions tests/unit_tests/pycfml/test__import_pycrysfml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import os
import sys

# Tests

def test__from_pycrysfml_import_crysfml08lib():
try:
from pycrysfml import crysfml08lib
assert True
except Exception as e:
print("::::: Failed to 'from pycrysfml import crysfml08lib'")
print('::::: ERROR:', e)
#assert False

def test__from_pycrysfml_import_cfml_utilities():
try:
from pycrysfml import cfml_utilities
assert True
except Exception as e:
print("::::: Failed to 'from pycrysfml import cfml_utilities'")
print('::::: ERROR:', e)
#assert False

# Debug

if __name__ == '__main__':
test__from_pycrysfml_import_crysfml08lib()
test__from_pycrysfml_import_cfml_utilities()

0 comments on commit f46aaa2

Please sign in to comment.