Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the test for the blogpage #45

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

sephyhe
Copy link

@sephyhe sephyhe commented Sep 9, 2022

The 3.0 Wagtail adds a new parameter for the Streamfield use_json_field=True and all the data will be saved in JSON format. The test still uses a simple string in the body field which will break the test. This PR is to update the right format in the test.

The change of using timezone is to resolve the following warning in the test.
/usr/local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1416: RuntimeWarning: DateTimeField BlogPage.date_published received a naive datetime (2022-09-09 01:32:11.499211) while time zone support is active. warnings.warn("DateTimeField %s received a naive datetime (%s)"

@aaronhaslett aaronhaslett merged commit c7ca1a8 into main Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants