Skip to content

Commit

Permalink
ran black on the file
Browse files Browse the repository at this point in the history
  • Loading branch information
GhaziSyed committed Jul 16, 2024
1 parent 1e6dfde commit 7325578
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions fmperf/tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@


# Configure logging
logging.basicConfig(filename='test_logs.log', level=logging.DEBUG,
format='%(asctime)s %(levelname)s:%(message)s', filemode='w')
logging.debug('Logging configured successfully')
logging.basicConfig(
filename="test_logs.log",
level=logging.DEBUG,
format="%(asctime)s %(levelname)s:%(message)s",
filemode="w",
)
logging.debug("Logging configured successfully")


# Test class to check if the imports are working for the files in the examples folder
class TestImports(unittest.TestCase):
Expand All @@ -21,12 +26,14 @@ def test_fmperf_import(self):
"""Test if fmperf import works correctly."""
try:
import fmperf

self.assertIsNotNone(fmperf)
logging.info("test_fmperf_import passed.")
except Exception as e:
logging.error(f"test_fmperf_import failed: {e}")
raise

if __name__ == '__main__':

if __name__ == "__main__":
unittest.main()
logging.getLogger().handlers[0].flush()

0 comments on commit 7325578

Please sign in to comment.