mycli icon indicating copy to clipboard operation
mycli copied to clipboard

tests now work or are skipped on Windows.

Open ERYoung11 opened this issue 1 year ago • 0 comments

Description

I updated the tests so that they now run on Windows. Some techniques employed:

  • NamedTemporaryFile is problematic on Windows because it keeps the file locked. Setting delete=False means it isn't locked but it must be cleaned up manually.
  • several checks with EOL = \n. Now check \r\n for Windows only.
  • a few things skipped that just don't work quite right on Windows for now.
    • favorite queries - something is not working with this code. I need to research more to understand why it breaks but it complains about the item used to make a Singleton in the class.
    • watch_query - apparently watching with interrupts just isn't working and this is somewhat known for Windows. Tends to loop more times than expected. Need to investigate to see if we can get it to work at all.

Checklist

  • [ ] I've added this contribution to the changelog.md.
  • [ ] I've added my name to the AUTHORS file (or it's already there).

ERYoung11 avatar Feb 19 '24 04:02 ERYoung11