There doesn't seem to be an agreed upon code formatter for the files in tests/.
Some widely used formatters are black, which does general code formatting, and isort, which sorts the imports. Example usage:
black .
isort . --profile black
This could reduce time spent reviewing and discussing code style.