Wykres commitów

141 Commity (b5835dd8626fe50eea5ca00fa48f9c9ab3c58bd7)

Autor SHA1 Wiadomość Data
David Beitey 67235accfc Improve database settings and docs for tests (#6585)
This change makes several improvements:

* Use in-memory SQLite database for test migrations

  The default database is SQLite but its NAME (which SQLite uses as the
  filename) was `wagtail`, which isn't valid since
  the wagtail codebase already has a `wagtail/` directory.  Trying to
  run migration creation commands
  (https://docs.wagtail.io/en/latest/contributing/developing.html#running-migrations-for-the-test-app-models)
  produced an error:

  django.db.utils.OperationalError: unable to open database file

  because of this conflict.

  This change uses an in-memory database as the default database for
  tests. If DATABASE_NAME were set to a real file name, then
  running the migration command with SQLite creates an empty db with
  this filename on running `django-admin`.

  Other non-SQLite engines continue to use the original `wagtail` name,
  meaning that the `test_wagtail` database gets created just as before.

* Modifies the default values for database USER, PASSWORD, HOST etc to
  being an empty string rather than None, to match Django's
  [defaults](https://docs.djangoproject.com/en/stable/ref/settings/#host).
  This helps avoid any potential issues when Django and database engines
  are expecting this being a string.

* Adds documentation to `developing.rst` regarding installation of
  required database modules and available environment variables for database
  connection customisation

* Normalises the DATABASE_PASSWORD tests environment variable to match
  the name in Django's database settings object
2020-12-09 15:28:44 +00:00
Matt Westcott 6e1e36256a Remove elasticsearch 2 support 2020-11-05 12:04:12 +00:00
Matt Westcott 9bec60624c Version bump mysqlclient for Django 3.1 compatibility 2020-11-02 18:40:58 +00:00
Matt Westcott 5bcfcdd315 Formalise support for Python 3.9 2020-11-02 17:29:58 +00:00
Dan Braghis 5c05fc7d8e Bump isort requirement for testing and update configuration 2020-10-16 18:56:39 +01:00
Karl Hobley f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
Matt Westcott c3475c8fdf Add USE_TZ=False test run to Travis 2020-08-26 17:02:36 +01:00
Matt Westcott 0f637a22de Add emailuser test run to Travis 2020-08-26 17:02:36 +01:00
Matt Westcott ec8e830b78 Test against Django 3.1 final and django-rest-framework 3.11.1 2020-08-06 11:25:47 +01:00
Matt Westcott 884b055289 Update tox/travis config to test against Django 3.1 stable branch 2020-07-31 15:41:47 +01:00
Matt Westcott 4df455ea9f
Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00
Matt Westcott c31d426910 Update tox/travis test matrix for Django 3.0 final 2019-12-17 12:43:46 +00:00
Matt Westcott 94bb595d0c Add Django stable/3.0.x to CI matrix (#5685) 2019-11-06 18:13:14 +00:00
Matt Westcott 3e98563340
Drop support for Django 2.0 (#5684) 2019-11-06 17:05:04 +00:00
Sergey Fedoseev eab9198f4c Move flake8 config to setup.cfg 2019-10-23 18:09:07 +02:00
pySilver 0149eff66a Implements ES7 support (#5611)
* Implements ES7 support

* Linter fix

* Adds docs

* isort fix

* Fixes typo
2019-10-10 11:00:14 +01:00
Matt Westcott 000c4990b4 Test Django master against django-modelcluster master 2019-09-25 20:35:03 +01:00
Jonathan Liuti 2de92f045c Upgrade minimum 6.x release for Elasticsearch to 6.4.0
Fix doc and test on ES6 python client compat

This commit changes the statement that version < 6.3.1 of the
elasticsearch python client should be used to instead state
that 6.4.0 is fine.

It also update the tests to reflect the statement.

Initially the `update_all_types` argument has been used to work
around an issue described in:
https://github.com/wagtail/wagtail/issues/2968

This argument was removed in elasticsearch-py 6.3.1 and making
use of it was raising an error.

With 6.4.0 nothing is raising anymore.
2019-08-18 15:37:11 +10:00
Matt Westcott 6358d84fa9 Test against Python 3.8 dev build 2019-08-06 14:25:00 +01:00
Matt Westcott a304f0f9f8 Remove support for Python 3.4 2019-04-10 17:39:53 +01:00
Matt Westcott a3283dd7fb Formalise support for Django 2.2 2019-04-01 19:59:04 +01:00
Andy Babic 234ee703ed Test against django's stable/2.2 branch 2019-02-26 19:31:53 +00:00
Benjamin Bach 5b0f2e1a54 First positional argument for tox as test module/case path 2018-10-30 12:16:45 +00:00
Matt Westcott 33e290b82d Fix linting failures for flake8 3.6 2018-10-25 18:03:29 +01:00
Matt Westcott 83f8988058 Add python3.7 to tox/travis config 2018-10-17 18:23:35 +01:00
Matt Westcott f56318a67b Remove Django 1.11 from CI 2018-10-17 15:30:36 +01:00
Matt Westcott 1938159083 Specify file-based sqlite db in tox 2018-08-21 17:17:03 +01:00
Matt Westcott 035353dc3d fixup! test against Django master 2018-08-14 15:43:28 +01:00
Matt Westcott 6817eda153 test against Django master 2018-08-14 14:47:18 +01:00
Matt Westcott 659a57d75f Specify Elasticsearch <6.3.1 2018-08-10 14:27:07 +01:00
Matt Westcott 90201afbd7 Upgrade mysqlclient to a supported version 2018-08-09 00:34:38 +01:00
Matt Westcott 4986381a58 Test against Django 2.1 final 2018-08-01 15:21:45 +01:00
Ryan Verner a657a75cd7 Fixes Django 2.1 breaking changes; QUERY_TERMS & auth_views.login() 2018-07-31 18:49:00 +01:00
Karl Hobley cac3a65a3d Travis/tox configuration for Elasticsearch 6 2018-05-04 15:57:36 +01:00
Bertrand Bordage e87ff07e7b Merge branch 'master' into search-query-api
# Conflicts:
#	wagtail/search/backends/db.py
#	wagtail/search/backends/elasticsearch2.py
2018-01-03 18:36:57 +01:00
Matt Westcott cca7653839 Specify django-taggit 0.22.2 for Django 2.0 support 2018-01-02 14:47:07 +00:00
Andy Babic 4a7320a0db Use master branch of taggit for django 2.0 tests (jdufresne's pull has been merged, and the branch deleted) 2017-12-21 23:54:23 +00:00
Bertrand Bordage ef125bde56 Merge branch 'master' into search-query-api
# Conflicts:
#	wagtail/search/tests/test_elasticsearch2_backend.py
#	wagtail/search/tests/test_elasticsearch5_backend.py
2017-12-14 18:59:03 +01:00
Matt Westcott c96b2848bc Use django-modelcluster 4.0 2017-12-13 16:07:50 +00:00
Matt Westcott 55a045f723 Test against Django 2.0 final release 2017-12-04 12:58:29 +00:00
Matt Westcott c2af41b4b9 Add Django 2.0 to travis 2017-12-04 12:58:29 +00:00
Bertrand Bordage 0bcf6a110d Merge branch 'master' into search-query-api
# Conflicts:
#	wagtail/contrib/postgres_search/backend.py
#	wagtail/contrib/postgres_search/utils.py
#	wagtail/core/tests/test_page_queryset.py
#	wagtail/search/backends/base.py
#	wagtail/search/backends/db.py
#	wagtail/search/backends/elasticsearch2.py
#	wagtail/search/queryset.py
#	wagtail/search/tests/elasticsearch_common_tests.py
#	wagtail/search/tests/test_backends.py
#	wagtail/search/tests/test_elasticsearch2_backend.py
#	wagtail/search/tests/test_elasticsearch5_backend.py
#	wagtail/search/utils.py
2017-11-30 01:53:09 +01:00
Karl Hobley 19730bea53 Renamed wagtail.wagtailsearch to wagtail.search
Conflicts:
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/topics/pages.rst
	docs/topics/search/searching.rst
	tox.ini
	wagtail/admin/tests/test_pages_views.py
	wagtail/admin/views/mixins.py
	wagtail/api/v2/filters.py
	wagtail/contrib/wagtailsearchpromotions/forms.py
	wagtail/contrib/wagtailsearchpromotions/views.py
	wagtail/documents/models.py
	wagtail/documents/views/chooser.py
	wagtail/documents/views/documents.py
	wagtail/documents/views/multiple.py
	wagtail/images/migrations/0001_initial.py
	wagtail/images/models.py
	wagtail/images/views/chooser.py
	wagtail/images/views/images.py
	wagtail/images/views/multiple.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/project_template/search/views.py
	wagtail/search/tests/test_frontend.py
	wagtail/search/tests/test_index_functions.py
	wagtail/search/views/frontend.py
	wagtail/search/views/queries.py
	wagtail/search/wagtail_hooks.py
	wagtail/tests/demosite/models.py
	wagtail/tests/modeladmintest/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/snippets/models.py
	wagtail/tests/testapp/migrations/0001_initial.py
	wagtail/tests/testapp/migrations/0020_customdocument.py
	wagtail/tests/testapp/models.py
	wagtail/tests/urls.py
	wagtail/wagtailsnippets/views/chooser.py
	wagtail/wagtailsnippets/views/snippets.py
2017-11-26 22:43:47 +00:00
Karl Hobley bf0f3e02ba Rename wagtail.wagtailimages to wagtail.images
Conflicts:
	docs/advanced_topics/api/v2/configuration.rst
	docs/advanced_topics/jinja2.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/topics/pages.rst
	docs/topics/streamfield.rst
	gulpfile.js/config.js
	tox.ini
	wagtail/admin/tests/test_compare.py
	wagtail/admin/tests/test_edit_handlers.py
	wagtail/api/v2/signal_handlers.py
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/core/tests/test_streamfield.py
	wagtail/documents/tests/test_models.py
	wagtail/images/models.py
	wagtail/images/permissions.py
	wagtail/images/tests/test_admin_views.py
	wagtail/images/tests/test_image_operations.py
	wagtail/images/tests/test_models.py
	wagtail/images/tests/test_signal_handlers.py
	wagtail/images/views/chooser.py
	wagtail/images/views/images.py
	wagtail/images/views/multiple.py
	wagtail/images/wagtail_hooks.py
	wagtail/images/widgets.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/tests/demosite/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/migrations/0001_initial.py
	wagtail/tests/testapp/migrations/0008_inlinestreampage_inlinestreampagesection.py
	wagtail/tests/testapp/migrations/0009_defaultstreampage.py
	wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Karl Hobley 78b1372cd4 Rename wagtail.wagtaildocs to wagtail.documents
Conflicts:
	docs/advanced_topics/i18n/index.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	gulpfile.js/config.js
	wagtail/admin/tests/test_collections_views.py
	wagtail/api/v2/signal_handlers.py
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/core/tests/test_collection_permission_policies.py
	wagtail/documents/permissions.py
	wagtail/documents/tests/test_admin_views.py
	wagtail/documents/tests/test_collection_privacy.py
	wagtail/documents/tests/test_models.py
	wagtail/documents/views/chooser.py
	wagtail/documents/views/documents.py
	wagtail/documents/views/serve.py
	wagtail/documents/wagtail_hooks.py
	wagtail/documents/widgets.py
	wagtail/project_template/project_name/urls.py
	wagtail/tests/demosite/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/models.py
	wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Bertrand Bordage 420f721631 Tests Travis CI against the PostgreSQL search backend. 2017-11-24 04:05:54 +01:00
Karl Hobley 0a52196c63 Remove ES 1.x from test configuration 2017-11-06 14:27:27 +00:00
Matt Westcott 5a0c36cdae Remove Django 1.8/1.10 from CI and readme 2017-10-11 17:04:06 +01:00
Karl Hobley 4a1e27dbd4 Remove Python 2 from CI and docs 2017-10-11 16:40:10 +01:00
Bertrand Bordage c577d15f13 Removes Django 1.10 HEAD from test matrix. 2017-04-12 01:42:40 +02:00