hardcoded.py is renamed conftest.py - it's a standard pytest name which allows automatic discovery of test fixtures. All future fixtures should go there.
Removed test_cleanup, added proper finalization by addfinalizer.
Removed if __name__ == '__main__' part is hardcoded.py - looks like an obsolete debug code.
Moved get_test_flat_rows logic from test_stream.py because it doesn't belong there, it's only used in test_database.py.
If you have suggestions regarding pull request, please don't close it, just add a comment.
I'm not very familar with fixtures, and it will take some time to familirize with this new code - risk that I will not be able to maintain these tests. Merging this pull, but with hesitation.
hardcoded.py
is renamedconftest.py
- it's a standard pytest name which allows automatic discovery of test fixtures. All future fixtures should go there.test_cleanup
, added proper finalization byaddfinalizer
.if __name__ == '__main__'
part ishardcoded.py
- looks like an obsolete debug code.get_test_flat_rows
logic fromtest_stream.py
because it doesn't belong there, it's only used intest_database.py
.If you have suggestions regarding pull request, please don't close it, just add a comment.