Closed zdomke closed 1 month ago
Adding empty tests and include some fixtures in conftest. Also added pytest configuation to pyproject.toml
Added some preliminary tests for:
IOTimeParser
Include some minor changes to files to account for using the tests:
trace/main.py
PyDMApplication.main_window
logging_lbl
trace/mixins/file_io.py
from datetime import datetime, timedelta
import datetime
datetime.now()
datetime
datetime.datetime
timedelta
datetime.timedelta
Converting bits of code to Python 3.9 (instead of Python 3.10) since that is the version we are building and testing.
Adding empty tests and include some fixtures in conftest. Also added pytest configuation to pyproject.toml
Added some preliminary tests for:
IOTimeParser
is parsing out times correctlyInclude some minor changes to files to account for using the tests:
trace/main.py
PyDMApplication.main_window
exists before using it (does not exist in testing)logging_lbl
is deleted before attempting to set its text (is deleted when testing is done)trace/mixins/file_io.py
from datetime import datetime, timedelta
-->import datetime
(pytest patch fordatetime.now()
requires this change)datetime
-->datetime.datetime
timedelta
-->datetime.timedelta