/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/tests/fixtures.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Ioana Lasc
  • Date: 2022-09-01 06:28:23 UTC
  • mfrom: (534.1.2 fix-download-links)
  • Revision ID: otto-copilot@canonical.com-20220901062823-hxsa870hkm7vbcud
Fix file download links in inventory UI

Merged from https://code.launchpad.net/~ilasc/loggerhead/fix-download-links/+merge/429230

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        self.filecontents = (
34
34
            'some\nmultiline\ndata\n'
35
35
            'with<htmlspecialchars\n')
36
 
        filenames = ['myfilename', 'anotherfile<']
 
36
        filenames = ['myfilename', 'anotherfile<', 'folder/', 'folder/myfilename']
37
37
        self.testcase.build_tree_contents(
38
38
            (filename, self.filecontents) for filename in filenames)
39
39
        self.tree.add(filenames)
40
40
        self.path = 'myfilename'
41
41
        self.msg = 'a very exciting commit message <'
42
 
        self.revid = self.tree.commit(message=self.msg)
 
42
        self.revid = self.tree.commit(message=self.msg, rev_id=b'rev-1')