Skip to content

Commit 1bd739a

Browse files
committed
Added tests for psycopg3 support (releated to #421)
1 parent 5f24b5f commit 1bd739a

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Version 2.7.0
77
NOTICE
88
~~~~~~
99

10-
This version drops support for Python 3.7 - latest Pylint no longer supports 3.7, and CI tasks were taking hours under 3.7
10+
This version drops support for Python 3.7 - latest Pylint no longer supports 3.7, and CI tasks were taking hours under 3.7. `Python 3.7 <https://www.python.org/downloads/release/python-3717/>`_ received its last security update more than a year ago (from the date of this release).
1111

1212

1313
Version 2.6.0 (14 May 2023)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Checks that Pylint does not complain Postgres model fields.
3+
"""
4+
# pylint: disable=C0111,W5101
5+
from __future__ import print_function
6+
7+
from django.contrib.postgres import fields
8+
from django.db import models
9+
10+
11+
class PostgresFieldsModel(models.Model):
12+
period = fields.DateRangeField(null=False, blank=False)
13+
14+
def rangefield_tests(self):
15+
print(self.period.lower)
16+
print(self.period.upper)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
requires = psycopg3

pylint_django/tests/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
SECRET_KEY = "fake-key"
2+
USE_TZ = False
23

34
INSTALLED_APPS = [
45
"django.contrib.auth",

0 commit comments

Comments
 (0)