summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-01-05make test_pep8.py passMichael Vogt24-150/+176
2014-01-05make pyflakes cleanMichael Vogt9-21/+5
2014-01-05add pyflakes testMichael Vogt1-0/+41
2014-01-05make pep8 test part of the unittestsMichael Vogt1-0/+27
2013-10-21tests/old/*.py: Update to new API as wellJulian Andres Klode11-110/+110
2013-10-21aptsources: Correctly parse multiple options (LP: #1103200)Julian Andres Klode2-2/+20
It's still not optimal and we do not support the arch+ and arch- options, but it's a beginning.
2013-10-21apt/debfile.py: Pass strip_multi_arch=False to parse_depends.Julian Andres Klode4-0/+56
Patch by Michael, tests derived from the ones provided by the reporter. I included the test debs without the source package, as for our use case, all needed "source code" is included in the package itself anyway. Reported-By: Francois Gouget <fgouget@free.fr> Closes: #717859 Closes: #717861
2013-10-14tests/test_path.py: Use "Dir" option instead of "RootDir", and reset in tearDownJulian Andres Klode1-3/+3
This fixes tests/test_all.py.
2013-10-14Add tests for (all except one) functions accepting pathsJulian Andres Klode1-0/+106
Test the functions with a unicode and a byte object each. I ignore PackageManager.install, because I cannot imagine an easy way to test that one.
2013-10-14python/indexrecords.cc: IndexRecords.load() needs to accept bytes as wellJulian Andres Klode1-0/+29
2013-10-10tests: Do not set dir::etc::sourceparts to /tmpJulian Andres Klode2-2/+4
This can cause build failures if *.list files are present in /tmp. Use /dev/null instead (not a directory, but APT silently ignores this).
2013-06-06add support for "key in apt.debfile.DebPackage" (closes: #710541)Michael Vogt1-0/+4
2013-03-13python2.6 compat fixesMichael Vogt1-1/+8
2012-11-20tests/test_auth.py: Temporarily disable $http_proxy for the tests, asMartin Pitt1-0/+11
gnupg does not get along with proxies (LP #789049)
2012-11-20tests/test_auth.py: In test_add_key_from_server_mitm(), show the exceptionMartin Pitt1-1/+1
if it does not match the expectation, so that this becomes possible to debug.
2012-11-20tests/*.py: Do not prepend None to sys.path, Python 3.3 redeems that withMartin Pitt4-4/+12
an unintelligible crash.
2012-11-19* tests/test_aptsources.py:Colin Watson1-1/+2
- Clean up file object in test_enable_component.
2012-11-19* tests/test_all.py:Colin Watson1-4/+9
- Write general test status output to stdout, not stderr.
2012-11-19* tests/test_debfile_multiarch.py:Colin Watson1-2/+4
- Don't log warnings when skipping tests; the resulting stderr output causes autopkgtest to fail.
2012-11-19* aptsources/distinfo.py, aptsources/distro.py, aptsources/sourceslist.py,Colin Watson2-6/+6
tests/test_apt_cache.py, tests/test_debfile_multiarch.py: - Use logging.warning rather than the deprecated logging.warn.
2012-11-19Try successive keyserver ports if 19191 is already in use.Colin Watson1-3/+25
2012-11-19* tests/test_auth.py:Colin Watson1-6/+24
- Discard stderr from gpg.
2012-11-19* tests/test_apt_cache.py, tests/test_lp659438.py, tests/test_progress.py:Colin Watson3-0/+6
- Clear out APT::Update::Post-Invoke and APT::Update::Post-Invoke-Success in tests that call cache.update to avoid pollution from the host system.
2012-11-08* tests/test_lp659438.py:Colin Watson1-1/+2
- Add an Architecture: line to the test Packages file so that apt doesn't get upset with it.
2012-10-17tests/test_apt_cache.py: delete test_cache_delete_leasks_fds() as its not ↵Michael Vogt1-10/+0
reliable
2012-10-15close cache on (re)openMichael Vogt1-0/+17
2012-10-15add changelog for lp:~jconti/python-apt/closeable-cache and add new test ↵Michael Vogt1-7/+23
"test_cache_close_download_fails"
2012-10-15merged lp:~jconti/python-apt/closeable-cache Michael Vogt1-4/+26
2012-10-12* tests/test_apt_cache.py:Jason Conti1-0/+19
- Add test to verify all files are closed after calling apt.Cache.close()
2012-10-12fix tests on python2.6 by using the python-unittest2 backport for "with ↵Michael Vogt2-4/+17
self.assertRaises()"
2012-10-10cherry pick robustness fixes for keyid (allow leading 0x, allow lowercase)Michael Vogt1-1/+2
2012-10-02merged from lp:~jamesodhunt/python-apt/test-for-size_to_str and tweaked a bitMichael Vogt2-22/+106
2012-10-02merge patch from Barry to fix #1030278Michael Vogt1-0/+22
2012-10-02tests/test_apt_pkg.py: New test, currently only forJames Hunt1-0/+111
size_to_str() method.
2012-10-01check fingerprint after downloading a key and before adding itMichael Vogt1-0/+16
2012-10-01support only downloading long keyids (160bit) in add_key_from_keyserver()Michael Vogt1-1/+2
2012-09-03merged lp:~sampo555/python-apt/fix_1042916Michael Vogt1-0/+14
2012-08-31Enable disabled repository instead of adding a new entry if a duplicate ↵sampo5551-0/+14
disabled entry already exists (LP: #1042916).
2012-06-25* tests/fakeroot-apt-key:Julian Andres Klode1-1/+1
- exec apt-key, otherwise we ignore the return value
2012-06-22* tests:Julian Andres Klode2-3/+15
- Fix new tests from Sebastian to work with Python 2.6
2012-06-15Merge patch from Colin Watson to handle non-UTF8 tag files inJulian Andres Klode1-1/+92
Python 3, by using bytes instead of str when requested; and document this in the RST documentation (Closes: #656288)
2012-06-12merged lp:~glatzor/python-apt/authMichael Vogt2-0/+225
2012-06-12tests/test_utils.py: fix absolute path in the testMichael Vogt1-3/+7
2012-06-11add test for utils.get_release_date_from_release_file and update code for ↵Michael Vogt2-1/+501
more py3 friendliness
2012-06-06Don't compare the headers in the export testSebastian Heinlein1-2/+5
2012-06-06Add a fakeroot wrapper for apt-keySebastian Heinlein2-0/+4
2012-06-06Create the config dir in the testsSebastian Heinlein1-0/+2
2012-06-05pep8 fixesMichael Vogt1-3/+3
2012-06-01Remove importing of the library dir. This is handled by test_allSebastian Heinlein1-3/+0
2012-06-01Python3 fixes and restore apt configuration afterwardsSebastian Heinlein1-7/+16