slaclab / trace

Live and Archived data plotting tool
https://slaclab.github.io/trace/
3 stars 4 forks source link

TST: Adding pytest to Project #65

Closed zdomke closed 1 month ago

zdomke commented 1 month ago

Adding empty tests and include some fixtures in conftest. Also added pytest configuation to pyproject.toml

Added some preliminary tests for:

  1. Checking default values on startup
  2. Checking that itemdelegates are added to the necessary columns in the tables used
  3. Check initial row values for axis model and curves model
  4. Testing the IOTimeParser is parsing out times correctly

Include some minor changes to files to account for using the tests:

zdomke commented 1 month ago

Converting bits of code to Python 3.9 (instead of Python 3.10) since that is the version we are building and testing.