Change tests to pytest pythonic format

With pytest usage we can make the tests more pythonic:

  • Use the assert keyword: done automatically in Introduce ruff pre-commit hook (#198)
  • Move test functions out of classes/remove classes
  • Remove tests/documents/test_block.py:1979 __main__ usage
Edited by Moul
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information