diff --git a/docs/source/conf.py b/docs/source/conf.py index fec02e992572b8472527ba658d7dda4c99341a85..51ed7e92b19bc0f3a3ca10a88f407faf73247927 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,7 +25,7 @@ copyright = '2022, Brandon Rodriguez' author = 'Brandon Rodriguez' # The full version, including alpha/beta/rc tags -release = '0.4.0' +release = '0.5.0' # -- General configuration --------------------------------------------------- diff --git a/docs/source/version_history.rst b/docs/source/version_history.rst index 5d7f57d9ec5b4ca3d0ed28ac01e08d555c466cc4..37e5f27cc48e8c2f47ef62bb8759033873787e68 100644 --- a/docs/source/version_history.rst +++ b/docs/source/version_history.rst @@ -2,7 +2,47 @@ Version History *************** -0.3.0 - Debug Output Customization +0.5.0 - Improved Integration TestCase & Initial LiveServer TestCases +==================================================================== +* 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 <https://docs.djangoproject.com/en/4.2/ref/urlresolvers/#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`` to ``response.full_url``. + + * ``response.url`` now contains the response url minus site root, while + ``response.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. + + +0.4.0 - Debug Output Customization ================================== * Updates project settings to allow better customization of debug output upon diff --git a/pyproject.toml b/pyproject.toml index 6ccb5eec4b5ba8c51ab74eb0b4300cdc1af4b780..a0f9263f3321dd87df312c8a89aaba453fdd4990 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta:__legacy__' [project] name = "django-expanded-test-cases" -version = "0.4.0" +version = "0.5.0" description = "Expands the existing Django TestCase class with extra functionality." readme = "readme.md" authors = [ diff --git a/setup.cfg b/setup.cfg index db929ce93e4b3f0393d54f6e54259e8feb243684..29cf5d47cec8788f63840ff257fb36ec647ee779 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = django-expanded-test-cases -version = 0.4.0 +version = 0.5.0 description = Expands the existing Django TestCase class with extra functionality. long_description = file: readme.md url = https://github.com/brodriguez8774/django-expanded-test-cases