- Added debug customization features that have been requested.
- Can now use a setting to disable logging output during tests. Either limiting lower logging levels or disabling entirely.
- Added visual separator options for test debug output.
- Updated assertContent statement to be more informative with contextual output, when providing a single statement with multiple checks.
- Fixed a few rare bugs and Django depreciation warnings.
- Slight change in project file naming, to try to fix an inconsistent issue when trying to access package debugging views.
- Shouldn't have any affect on package usage unless a project was directly accessing these debug views.
- Correction for bug in standardization of assertTitle function logic.
- Correction for bug in regards to ContextDict/ContextList objects and displaying debug output.
- Now supports using regex to hide sections of debug output on test failure.
- Useful for debugging template output with large amounts of content.
- Particularly useful for templates that include third-party content (which you're unlikely to test for, that should be done in the third-party app itself), or projects with large amounts of header/footer/javascript html content.
- Correct more debug output from last version.
- Add assertContent functionality to optionally include custom error messages on failure.
- Correct some leftover debug output from last version.
- Add a missing assertion type to IntegrationTestcase.
LiveServerTestCase
andChannelsLiveServerTestCase
both exists, and at least function in a non-multi-threaded environment. * Seems to have some issues in multi-threaded testing environments. Needs further examination. * New documentation for this is fairly non-existent at the moment. All test case options are available to view at<project_root>/django_expanded_text_cases/`text_cases/constants.py
.
- Updated/corrected docs.
- Updated beta LiveServer classes to function with Chromedriver version 115 and higher.
- Generally reworked/improved how URLs are handled in response assertions.
- All assertResponse type calls take args for additional parameters for url parsing, provided as args or kwargs (for Django reverse calls), or query_parameters (for GET style url calls).
- These parameters can be sent for both standard url resolving, and redirect url resolving.
- Changed
response.url
toresponse.full_url
.response.url
now contains the response url minus site root, whileresponse.full_url
contains response url with site root.
- Added assertTextStartsWith() and assertTextEndsWith() functions.
- These are more forgiving versions of assertText(), with similar output on failure.
- Added setting for behavior of assertTitle() function in page response tests.
- To make behavior consistent across functions, the assertTitle()'s exact_match arg (default of True) has been renamed to allow_partials (default of False).
- Updated default value of DJANGO_EXPANDED_TESTCASES_ALLOW_MESSAGE_PARTIALS to be False, to better match what is likely the default expected logic for most users.
- LiveServerTestCase has been split into LiveServerTestCase and ChannelsLiveServerTestCase and is now tentatively usable.
- LiveServerTestCase uses basic selenium testing, while ChannelsLiveServerTestCase uses selinium via DjangoChannels.
- General small bugfixes.
- Updates project settings to allow better customization of debug output upon UnitTest failure.
- Also refactors existing settings to be more consistent and uniform.
- Some existing settings names have changed.
- Docs now reflect setting options for debug customization.
- Includes customization of how test-users are handled, when running any given Integration/Response test.
- For more details, see
configuration/users:Configuring Test Users
. - As part of this change, the default way of handling users has changed. Original default handling was equivalent to
relaxed
, but now is equivalent toanonymous
to better match with Django's default behavior.
- For more details, see
- Minor updates for docs and Python3.11.
- Fixed multiple various bugs and potential inconsistencies with test handling.
- Updated Integration content check to indicate when a value matches all except for text capitalization.
- Initial implementation of improved test output text coloring.
- Slightly buggy, and definitely needs work. But its still more helpful than nothing.
- Start of LiveServer/Selenium testing classes.
- Definitely in a "pre-release" state and not yet viable for use.
- For now, continue to use the default Django/Selenium LiveServer testing classes.
- Generally improve project debug print output, including basic coloring.
- Bug corrections.
- Core TestCase classes seem stable and tested in a real project environment.
- Improved/cleaned general assertion error messages.
- Improved functionality of AssertContent function.
- Most "core" functionality implemented.
- BaseTestCase and IntegrationTestCase classes created.
- Initial docs created.
- Generally ready for version 0.2. Will update after live testing in actual projects, as a proper dependency.
- First release.
- Very much WIP and subject to change.
- Minimal functionality.
- Not recommended for import/use in a live production project.