Merge lp:~jelmer/bzr/per-repository-vf into lp:bzr
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5709 |
Proposed branch: | lp:~jelmer/bzr/per-repository-vf |
Merge into: | lp:bzr |
Diff against target: |
360 lines (+175/-58) 10 files modified
bzrlib/remote.py (+11/-0) bzrlib/repofmt/knitrepo.py (+2/-0) bzrlib/repofmt/pack_repo.py (+2/-0) bzrlib/repofmt/weaverepo.py (+2/-0) bzrlib/repository.py (+4/-2) bzrlib/tests/__init__.py (+1/-0) bzrlib/tests/per_repository/test_repository.py (+12/-56) bzrlib/tests/per_repository_vf/__init__.py (+44/-0) bzrlib/tests/per_repository_vf/test_repository.py (+91/-0) doc/en/release-notes/bzr-2.4.txt (+6/-0) |
To merge this branch: | bzr merge lp:~jelmer/bzr/per-repository-vf |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Needs Fixing | ||
Review via email: mp+51150@code.launchpad.net |
Commit message
Move some tests that rely on the full VersionedFiles API to bzrlib.
Description of the change
Add bzrlib.
Also, set some of the other RepositoryFormat flags to None by default and add tests to make sure that mplementations set them.
To post a comment you must log in.
148 +def load_tests( standard_ tests, module, loader): format_ scenarios( ): info['repositor y_format' ] supports_ full_versioned_ files: append( (test_name, scenario_info)) loadTestsFromMo duleNames( [ tests.per_ repository_ vf.test_ repository' ]) tests(tests, scenarios, result)
149 + scenarios = []
150 + for test_name, scenario_info in all_repository_
151 + format = scenario_
152 + if format.
153 + scenarios.
154 + result = loader.suiteClass()
155 + tests = loader.
156 + 'bzrlib.
157 + multiply_
158 + return result
Hmm, wouldn't it be better to use a scenarios attribute in test_repository.py instead of having the parametrization done in a separate file ?
I'm a bit concerned about the next dev that will try to add tests in this directory...
Other than that, ok to land.