Split file attachment tests into multiple modules.

Review Request #14196 — Created Oct. 10, 2024 and submitted — Latest diff uploaded

Information

Review Board
release-7.x

Reviewers

All of our file attachment tests were living in a single module, making
it annoying to maintain. This change splits this up into several
modules, one per class or purpose.

We did have some tests specific to the review request diff viewer
fragment code, which was living in here. These tests have moved to the
module responsible for this code's tests.

No code within the tests have changed. This means that they're largely
using older style and doc guidelines. There are currently no plans to
redo any of this.

All unit tests pass.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Split file attachment tests into multiple modules.
All of our file attachment tests were living in a single module, making it annoying to maintain. This change splits this up into several modules, one per class or purpose. We did have some tests specific to the review request diff viewer fragment code, which was living in here. These tests have moved to the module responsible for this code's tests.
adb66274fa7d542c43285c334a5fcf412e114fec Christian Hammond
reviewboard/attachments/tests.py
reviewboard/attachments/tests/__init__.py
reviewboard/attachments/tests/base.py
reviewboard/attachments/tests/test_file_attachment.py
reviewboard/attachments/tests/test_file_attachment_manager.py
reviewboard/attachments/tests/test_image_mimetype.py
reviewboard/attachments/tests/test_mimetype_handler.py
reviewboard/attachments/tests/test_text_mimetype.py
reviewboard/attachments/tests/test_user_file_attachment.py
reviewboard/attachments/testdata/utf-16.txt
reviewboard/reviews/tests/test_reviews_diff_fragment_view.py
Loading...