From b5b481b63cc60e00d2adb889fd21e79c229de51b Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Dec 01 2018 13:52:15 +0000 Subject: Fix fake spec file for clog tests Signed-off-by: Chenxiong Qi --- diff --git a/tests/test_commands.py b/tests/test_commands.py index d7b20cc..c26301f 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -10,6 +10,7 @@ import tempfile import git import rpm +from datetime import datetime from mock import call from mock import patch from mock import Mock @@ -342,19 +343,18 @@ class ClogTest(CommandTestCase): Summary: package demo Name: pkgtool Version: 0.1 -Release: 1%{?dist} +Release: 1%{{?dist}} License: GPL %description package demo for testing %changelog -* Mon Nov 07 2016 tester@example.com +* {0} tester@example.com - add %%changelog section - add new spec -$what_is_this -* Mon Nov 06 2016 tester@example.com +* {0} tester@example.com - initial -''') +'''.format(datetime.strftime(datetime.now(), '%a %b %d %Y'))) self.clog_file = os.path.join(self.cloned_repo_path, 'clog') self.cmd = self.make_commands()