1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 13:18:42 +02:00

- renamed limit_size to size_limit (only internal variable changes)

- added new method "get_files_meta" to the Package class (which handles
  the the "skip file and service stuff")
This commit is contained in:
Marcus Huewe
2010-09-03 14:51:20 +02:00
parent 7dc2356c0e
commit 89c9cb67f4
4 changed files with 42 additions and 34 deletions

View File

@@ -133,7 +133,7 @@ class TestUpdate(OscTestCase):
of the size constraint
"""
self._change_to_pkg('limitsize')
osc.core.Package('.').update(limit_size=50)
osc.core.Package('.').update(size_limit=50)
exp = 'D bigfile\nAt revision 2.\n'
self.assertEqual(sys.stdout.getvalue(), exp)
self.assertFalse(os.path.exists(os.path.join('.osc', 'bigfile')))
@@ -146,13 +146,13 @@ class TestUpdate(OscTestCase):
def testUpdateLimitSizeAddDelete(self):
"""
a new file (exists) was added to the remote package with
size < limit_size and one file (nochange) was deleted from the
size < size_limit and one file (nochange) was deleted from the
remote package (local file 'nochange' is modified). Additionally
files which didn't change are removed the local wc due to the
size constraint.
"""
self._change_to_pkg('limitsize')
osc.core.Package('.').update(limit_size=10)
osc.core.Package('.').update(size_limit=10)
exp = 'A exists\nD bigfile\nD foo\nD merge\nD nochange\nAt revision 2.\n'
self.assertEqual(sys.stdout.getvalue(), exp)
self.assertFalse(os.path.exists(os.path.join('.osc', 'bigfile')))