From b54b0facb3b8d7c592eda36f96445a3168a95b0d Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Fri, 14 Feb 2020 09:48:25 -0800 Subject: [PATCH] Account for timezone field in existing forms tests --- babybuddy/tests/tests_forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/babybuddy/tests/tests_forms.py b/babybuddy/tests/tests_forms.py index e46fa638..c37ddb60 100644 --- a/babybuddy/tests/tests_forms.py +++ b/babybuddy/tests/tests_forms.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- from django.contrib.auth.models import User from django.core.management import call_command -from django.test import TestCase -from django.test import Client as HttpClient +from django.test import TestCase, Client as HttpClient +from django.utils import timezone from faker import Factory @@ -31,6 +31,7 @@ class FormsTestCase(TestCase): 'email': 'user@user.user', 'dashboard_refresh_rate': '', 'language': 'en', + 'timezone': timezone.get_default_timezone_name(), 'next': '/user/settings/' }