From c8010fc0ce13ed5f667ee482183f30804c91d5ac Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Wed, 13 Apr 2016 09:41:28 -0400 Subject: [PATCH] use new timestamp logic in tests --- .../tests/functional/commands/test_run_fact_cache_receiver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/functional/commands/test_run_fact_cache_receiver.py b/awx/main/tests/functional/commands/test_run_fact_cache_receiver.py index 266272e37c..a6006c7427 100644 --- a/awx/main/tests/functional/commands/test_run_fact_cache_receiver.py +++ b/awx/main/tests/functional/commands/test_run_fact_cache_receiver.py @@ -7,6 +7,7 @@ from datetime import datetime import json # Django +from django.utils import timezone # AWX from awx.main.management.commands.run_fact_cache_receiver import FactCacheReceiver @@ -18,7 +19,7 @@ def check_process_fact_message_module(fact_returned, data, module_name): date_key = data['date_key'] # Ensure 1, and only 1, fact created - timestamp = datetime.fromtimestamp(date_key, None) + timestamp = datetime.fromtimestamp(date_key, timezone.utc) assert 1 == Fact.objects.all().count() host_obj = Host.objects.get(name=data['host'], inventory__id=data['inventory_id'])