Skip to content

Commit

Permalink
update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kif committed Nov 29, 2023
1 parent 1b91bc4 commit 8c76977
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1,141 deletions.
86 changes: 0 additions & 86 deletions freesas/setup.py

This file was deleted.

9 changes: 4 additions & 5 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"""

__authors__ = ["Jérôme Kieffer", "Thomas Vincent"]
__date__ = "28/11/2023"
__date__ = "29/11/2023"
__license__ = "MIT"

import sys
Expand Down Expand Up @@ -343,14 +343,13 @@ def is_debug_python():
def get_test_options(project_module):
"""Returns the test options if available, else None"""
module_name = project_module.__name__ + '.test.utilstest'
logger.info('Import %s', module_name)
logger.info(f'Import {module_name}')
try:
test_utils = importer(module_name)
except ImportError:
logger.warning("No module named '%s'. No test options available.", module_name)
except ImportError as error:
logger.warning("No module named '%s'. No test options available. %s", module_name, error)
return None

print(test_utils, dir(test_utils))
test_options = getattr(test_utils, "test_options", None)
return test_options

Expand Down
Loading

0 comments on commit 8c76977

Please sign in to comment.