/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/test_bedding.py

  • Committer: Martin
  • Date: 2019-06-16 17:36:59 UTC
  • mto: This revision was merged to the branch mainline in revision 7346.
  • Revision ID: gzlist@googlemail.com-20190616173659-rg7ps0f3wfiocsdm
Fix tests that need whoami not to be set

Add override_whoami helper that ensures whoami is not set. Had false
passes due to incomplete test isolation after rename.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    )
31
31
 
32
32
 
 
33
def override_whoami(test):
 
34
    test.overrideEnv('EMAIL', None)
 
35
    test.overrideEnv('BRZ_EMAIL', None)
 
36
    # Also, make sure that it's not inferred from mailname.
 
37
    test.overrideAttr(bedding, '_auto_user_id', lambda: (None, None))
 
38
 
 
39
 
33
40
class TestConfigPath(tests.TestCase):
34
41
 
35
42
    def setUp(self):