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

Tests using timezone naive datetime for timezone aware field #703

Open
ieaves opened this issue Oct 9, 2023 · 1 comment
Open

Tests using timezone naive datetime for timezone aware field #703

ieaves opened this issue Oct 9, 2023 · 1 comment
Labels
grai-server Created by Linear-GitHub Sync hacktoberfest linear

Comments

@ieaves
Copy link
Contributor

ieaves commented Oct 9, 2023

The following warning messages are being emitted for timezone naive test values:

connections/tests/test_tasks.py::TestEventsAllTests::test_dbt_cloud
  /Users/ian/Library/Caches/pypoetry/virtualenvs/the-guide-y4fToIIm-py3.11/lib/python3.11/site-packages/django/db/models/fields/__init__.py:1535: RuntimeWarning: DateTimeField Event.date received a naive datetime (2023-10-09 00:00:00) while time zone support is active.
    warnings.warn(

auth/tests/test_mutations.py::test_verify_email
  /Users/ian/Library/Caches/pypoetry/virtualenvs/the-guide-y4fToIIm-py3.11/lib/python3.11/site-packages/django/db/models/fields/__init__.py:1595: RuntimeWarning: DateTimeField User.verified_at received a naive datetime (2023-10-09 14:25:20.943758) while time zone support is active.
    warnings.warn(

These tests should be modified so that running tests no longer emits the respective warning message.

@ieaves ieaves added linear hacktoberfest grai-server Created by Linear-GitHub Sync labels Oct 9, 2023
@kisharnath
Copy link

If this is good first issue ,I want to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grai-server Created by Linear-GitHub Sync hacktoberfest linear
Projects
None yet
Development

No branches or pull requests

2 participants