summaryrefslogtreecommitdiff
path: root/tests/test_Changelog.py
AgeCommit message (Collapse)Author
2015-02-20Don't output additional newlinesGuido Günther
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
2015-02-20Use relative import for testutilsGuido Günther
2015-02-20Ignore return types of write and shutil.copyGuido Günther
Python3 does not return None anymore
2013-04-29ChangeLog: Remove is_nativeGuido Günther
to avoid accidental usage. Use DebianSource.is_native instead.
2013-04-26tests: Fix tests for UbuntuMarkus Lehtonen
On Ubuntu dch produces different version numbering. Adapt tests for this. Adds a jew class to parse '/etc/lsb-release' to determine the distribution and it's codename to dynamically adapt tests accordingly. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-26tests: add missing import in test_ChangelogMarkus Lehtonen
That was erroneously removed in 3d6b68ae541d6020ff747628b3e44196999e0a50. and breaks without dch installed Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25tests: another fix for older dchMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-08tests: Use tempfile.mkdtemp to create temp dirs for testsThomas Koch
This puts test dirs below /tmp which often is a tmpfs. All tests include the context module which consolidates tmpdir creation and cleanup, undoes a chdir in teardown and silences log messages.
2013-03-29Move debian/changelog manipulation to gbp.deb.changelog.ChangeLog.Daniel Dehennin
spawn_dch switch gbp.command.wrappers.Command. * gbp/deb/changelog.py (ChangeLog.spawn_dch): static method adapted from gbp.scripts.dch and converted to gbp.command_wrappers.Command. (add_entry): New method adapted from gbp.scripts.dch.add_changelog_entry. (add_section): New method adapted from gbp.scripts.dch.add_changelog_entry. Remove DebianGitRepository and options, this has nothing to do with changelog management. * tests/test_Changelog.py: Test new methods. * gbp/scripts/dch.py: Remove useless functions: system(), spawn_dch(), add_changelog_section() and add_changelog_entry(). Update calls accordingly. (fixup_trailer): Use spawn_dch() method of ChangeLog class. (process_options): dch_options became a list. (main): Use add_section() and add_entry() methods of ChangeLog object. Take care of upstream version since ChangeLog.add_section() does not manage it anymore. Update exception handling, ChangeLog.spawn_dch() can raise "CommandExecFailed" exception. Closes: #672954
2013-03-22tests: skip test_Changelog if 'dch' tool is not availableMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-05-15Add gbp.deb.ChangeLogSectionGuido Günther
to parse package and version out of a changelog section
2012-03-15deb.changelog: allow to extract author and dateGuido Günther
2012-01-22PristineTar: move to separate moduleGuido Günther
and make it accessible from GitRepository to group checkout/checkin/lookup.
2012-01-22deb.changelog: add name propertyGuido Günther
2011-11-28Add ChangeLog classGuido Günther
making it easier to query versions. Add tests.