From 8f29e8df5c843deff3c654d476bd7475483ee058 Mon Sep 17 00:00:00 2001 From: Brandon Rodriguez <brodriguez8774@gmail.com> Date: Sun, 16 Jul 2023 07:23:12 -0400 Subject: [PATCH] Update project version --- docs/source/conf.py | 2 +- docs/source/version_history.rst | 42 ++++++++++++++++++++++++++++++++- pyproject.toml | 2 +- setup.cfg | 2 +- 4 files changed, 44 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index fec02e9..51ed7e9 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 5d7f57d..37e5f27 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 6ccb5ee..a0f9263 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 db929ce..29cf5d4 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 -- GitLab