1515# along with Patchman. If not, see <http://www.gnu.org/licenses/>
1616
1717from django .test import TestCase , override_settings
18+ from django .utils import timezone
1819
1920from errata .models import Erratum
2021from operatingsystems .models import OSRelease
@@ -37,7 +38,7 @@ def test_erratum_with_cves(self):
3738 name = 'RHSA-2024:1234' ,
3839 e_type = 'Security Advisory' ,
3940 synopsis = 'Important: curl security update' ,
40- issue_date = '2024-03-15' ,
41+ issue_date = timezone . now () ,
4142 )
4243 erratum .cves .add (cve1 , cve2 )
4344
@@ -54,7 +55,7 @@ def test_erratum_with_osreleases(self):
5455 name = 'RHSA-2024:1235' ,
5556 e_type = 'Security Advisory' ,
5657 synopsis = 'Important: openssl security update' ,
57- issue_date = '2024-03-16' ,
58+ issue_date = timezone . now () ,
5859 )
5960 erratum .osreleases .add (osrelease1 , osrelease2 )
6061
@@ -66,7 +67,7 @@ def test_erratum_with_packages(self):
6667 name = 'RHSA-2024:1236' ,
6768 e_type = 'Bug Fix' ,
6869 synopsis = 'Bug fix: httpd update' ,
69- issue_date = '2024-03-17' ,
70+ issue_date = timezone . now () ,
7071 )
7172
7273 # Verify erratum can store package references
0 commit comments