<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/44835b81c956cb83bc16fa831ab24d7d31b2f132" style="text-decoration: none; font-weight: bold; color: #573;">test_admin_notifications: fix index test dependency The index test only worked because another test had prepared some database state it relied on. More spe...</a></h1>
<div id="body">
patrickdp committed on 2016-03-11 21:20:04<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/44835b81c956cb83bc16fa831ab24d7d31b2f132">44835b81</a><pre>test_admin_notifications: fix index test dependency
The index test only worked because another test had prepared some database
state it relied on.
More specifically, the index test creates a notification
as a newly created user, but that user had not been committed to the
database yet. When running the index test standalone, this causes the error:
IntegrityError: (IntegrityError) NOT NULL constraint failed:
notifications.created_by u'INSERT INTO notifications (subject, body,
created_by, created_on, type) VALUES (?, ?, ?, ?, ?)'
(u'test_notification_1', u'notification_1', None, '2016-03-11
21:15:19.066402', u'message')
By committing the database after the user is created, the problem is solved.
M kallithea/tests/functional/test_admin_notifications.py (1 lines added, 0 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/15c40f8a35100ab4928f3933329b0a97fc996b05" style="text-decoration: none; font-weight: bold; color: #573;">pytest migration: convert functional tests with setup/teardown methods pytest also supports setup/teardown methods like unittest (even though pytest fixture...</a></h1>
<div id="body">
patrickdp committed on 2016-04-26 15:35:13<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/15c40f8a35100ab4928f3933329b0a97fc996b05">15c40f8a</a><pre>pytest migration: convert functional tests with setup/teardown methods
pytest also supports setup/teardown methods like unittest (even though
pytest fixtures are more powerful and should be the end goal).
Only difference is the naming and signature of setUp (setup_method) and
tearDown (teardown_method).
M kallithea/tests/functional/test_admin.py (1 lines added, 1 lines removed)
M kallithea/tests/functional/test_admin_gists.py (2 lines added, 2 lines removed)
M kallithea/tests/functional/test_admin_notifications.py (2 lines added, 2 lines removed)
M kallithea/tests/functional/test_admin_repos.py (2 lines added, 2 lines removed)
M kallithea/tests/functional/test_changeset_comments.py (2 lines added, 2 lines removed)
M kallithea/tests/functional/test_compare.py (3 lines added, 3 lines removed)
M kallithea/tests/functional/test_forks.py (5 lines added, 8 lines removed)
M kallithea/tests/functional/test_pullrequests.py (3 lines added, 3 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/1173317b4f1adf4176fed85c21660de28dc8602d" style="text-decoration: none; font-weight: bold; color: #573;">pytest migration: simplify hg+git test class hierarchies No need to use multiple inheritance when single inheritance can do it just as well. Let the git/hg ...</a></h1>
<div id="body">
patrickdp committed on 2016-03-11 20:43:57<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/1173317b4f1adf4176fed85c21660de28dc8602d">1173317b</a><pre>pytest migration: simplify hg+git test class hierarchies
No need to use multiple inheritance when single inheritance can do it just
as well. Let the git/hg test cases just derive from _BaseTestCase which in
turn derives from TestControllerPytest.
Also remove empty setup_class/teardown_class methods.
M kallithea/tests/functional/test_admin_repos.py (3 lines added, 11 lines removed)
M kallithea/tests/functional/test_forks.py (10 lines added, 19 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/72e8508d9758294bb71f0dbd3142b2c5fc384381" style="text-decoration: none; font-weight: bold; color: #573;">pytest migration: convert functional tests with setup/teardown and parametrization</a></h1>
<div id="body">
patrickdp committed on 2016-04-25 11:35:21<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/72e8508d9758294bb71f0dbd3142b2c5fc384381">72e8508d</a><pre>pytest migration: convert functional tests with setup/teardown and parametrization
M kallithea/tests/functional/test_admin_users.py (4 lines added, 4 lines removed)
M kallithea/tests/functional/test_login.py (9 lines added, 9 lines removed)
M kallithea/tests/functional/test_my_account.py (3 lines added, 3 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/91b89797a775ccd68c9710967532d4813779b317" style="text-decoration: none; font-weight: bold; color: #573;">pytest migration: add temporary assertRaises wrapper Similar to the other temporary unittest-assert wrappers, add the missing assertRaises and forward to py...</a></h1>
<div id="body">
patrickdp committed on 2016-03-15 16:55:19<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/91b89797a775ccd68c9710967532d4813779b317">91b89797</a><pre>pytest migration: add temporary assertRaises wrapper
Similar to the other temporary unittest-assert wrappers, add the missing
assertRaises and forward to pytest.raises.
M kallithea/tests/__init__.py (3 lines added, 0 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/be1d20bfd2ddffd837c844d8aa1b428433025ee8" style="text-decoration: none; font-weight: bold; color: #573;">pytest migration: model: convert all tests to TestControllerPytest The model tests were based on BaseTestCase which does not exist currently for pytest-styl...</a></h1>
<div id="body">
patrickdp committed on 2016-04-26 18:00:39<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/be1d20bfd2ddffd837c844d8aa1b428433025ee8">be1d20bf</a><pre>pytest migration: model: convert all tests to TestControllerPytest
The model tests were based on BaseTestCase which does not exist currently
for pytest-style tests. Nevertheless, there seems to be no advantage of
directly subclassing BaseTestCase over subclassing TestControllerPytest.
Thus, keep things simple and use TestControllerPytest.
M kallithea/tests/models/test_changeset_status.py (3 lines added, 3 lines removed)
M kallithea/tests/models/test_diff_parsers.py (2 lines added, 2 lines removed)
M kallithea/tests/models/test_notifications.py (2 lines added, 5 lines removed)
M kallithea/tests/models/test_permissions.py (5 lines added, 7 lines removed)
M kallithea/tests/models/test_repo_groups.py (3 lines added, 3 lines removed)
M kallithea/tests/models/test_repos.py (6 lines added, 5 lines removed)
M kallithea/tests/models/test_user_groups.py (4 lines added, 4 lines removed)
M kallithea/tests/models/test_users.py (8 lines added, 10 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/f33cc4af706ba781dbf9a866b45caa37cafcb5a9" style="text-decoration: none; font-weight: bold; color: #573;">tests: finally block also needs to be executed if api_call itself fails The cleanup code (finally block) should be executed as soon as something what change...</a></h1>
<div id="body">
domruf committed on 2016-04-12 20:45:46<br />branch: default<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/f33cc4af706ba781dbf9a866b45caa37cafcb5a9">f33cc4af</a><pre>tests: finally block also needs to be executed if api_call itself fails
The cleanup code (finally block) should be executed as soon as something what
changes the db fails.
I don't remember which one but one of these tests failed and caused all the
others to fail as well because the database wasn't cleaned up after the first
failure. That made finding the root cause more difficult then it should have
been.
M kallithea/tests/api/api_base.py (33 lines added, 37 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/43d23fa871d8e1bef3467e5991c6726a5a1cf549" style="text-decoration: none; font-weight: bold; color: #573;">tests: add repository size tests</a></h1>
<div id="body">
domruf committed on 2016-04-24 17:29:20<br />branch: stable<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/43d23fa871d8e1bef3467e5991c6726a5a1cf549">43d23fa8</a><pre>tests: add repository size tests
M kallithea/tests/vcs/test_git.py (16 lines added, 0 lines removed)
M kallithea/tests/vcs/test_hg.py (17 lines added, 0 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/8a9d938388829c676ca2378780533b8280630ded" style="text-decoration: none; font-weight: bold; color: #573;">vcs: fix repo size calculation tip.walk already 'dives into' the dirs - don't do that twice.</a></h1>
<div id="body">
domruf committed on 2016-04-19 17:53:16<br />branch: stable<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/8a9d938388829c676ca2378780533b8280630ded">8a9d9383</a><pre>vcs: fix repo size calculation
tip.walk already 'dives into' the dirs - don't do that twice.
M kallithea/lib/vcs/backends/base.py (0 lines added, 3 lines removed)
M kallithea/tests/vcs/test_git.py (1 lines added, 1 lines removed)
M kallithea/tests/vcs/test_hg.py (1 lines added, 1 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body style='font: 12pt Roboto, "DejaVu Sans", Arial; margin-left: 5px; margin-right: 5px;'>
<div id="entry">
<h1 style='font: 12pt Roboto, "DejaVu Sans", Arial; display:block; background: #c0cf88; border-bottom: solid 3px #573; padding: 5px; margin-top: 0px; color: #573;'><a href="https://kallithea-scm.org/repos/kallithea/changeset/93b512845dab0f6a950df7c5bb1ccdeaffd5e386" style="text-decoration: none; font-weight: bold; color: #573;">changelog: fix range selection from changelog in git repos (Issue #190) The Mercurial backend can handle short revision ids so the problem does not occur wi...</a></h1>
<div id="body">
domruf committed on 2016-02-22 09:18:27<br />branch: stable<br />tag: tip<br />changeset: <a href="https://kallithea-scm.org/repos/kallithea/changeset/93b512845dab0f6a950df7c5bb1ccdeaffd5e386">93b51284</a><pre>changelog: fix range selection from changelog in git repos (Issue #190)
The Mercurial backend can handle short revision ids so the problem does not
occur with hg repositories. Git needs the full hash.
M kallithea/templates/changelog/changelog.html (5 lines added, 6 lines removed)</pre>
</div>
</div>
</div>
</body>
</html>