/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_config.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    script,
26
26
    test_config as _t_config,
27
27
    )
 
28
from ..matchers import ContainsNoVfsCalls
28
29
 
29
30
 
30
31
class TestWithoutConfig(tests.TestCaseWithTransport):
365
366
            ''')
366
367
 
367
368
 
 
369
class TestSmartServerConfig(tests.TestCaseWithTransport):
 
370
 
 
371
    def test_simple_branch_config(self):
 
372
        self.setup_smart_server_with_call_log()
 
373
        t = self.make_branch_and_tree('branch')
 
374
        self.reset_smart_call_log()
 
375
        out, err = self.run_bzr(['config', '-d', self.get_url('branch')])
 
376
        # This figure represent the amount of work to perform this use case. It
 
377
        # is entirely ok to reduce this number if a test fails due to rpc_count
 
378
        # being too low. If rpc_count increases, more network roundtrips have
 
379
        # become necessary for this use case. Please do not adjust this number
 
380
        # upwards without agreement from bzr's network support maintainers.
 
381
        self.assertLength(5, self.hpss_calls)
 
382
        self.assertLength(1, self.hpss_connections)
 
383
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
 
384
 
 
385
 
368
386
class TestConfigDirectory(tests.TestCaseWithTransport):
369
387
 
370
388
    def test_parent_alias(self):