Make tests cope with random dict ordering
This commit is contained in:
parent
9481bb0330
commit
dcffc1739e
1 changed files with 4 additions and 8 deletions
|
@ -63,10 +63,8 @@ def test_projectsList_multiple():
|
||||||
gitweb.generate_project_list_fp(
|
gitweb.generate_project_list_fp(
|
||||||
config=cfg,
|
config=cfg,
|
||||||
fp=got)
|
fp=got)
|
||||||
eq(got.getvalue(), '''\
|
eq(frozenset(got.getvalue().splitlines(True)),
|
||||||
quux
|
frozenset(['quux\n', 'foo%2Fbar John+Doe\n']))
|
||||||
foo%2Fbar John+Doe
|
|
||||||
''')
|
|
||||||
|
|
||||||
def test_projectsList_multiple_globalGitwebYes():
|
def test_projectsList_multiple_globalGitwebYes():
|
||||||
cfg = RawConfigParser()
|
cfg = RawConfigParser()
|
||||||
|
@ -84,10 +82,8 @@ def test_projectsList_multiple_globalGitwebYes():
|
||||||
gitweb.generate_project_list_fp(
|
gitweb.generate_project_list_fp(
|
||||||
config=cfg,
|
config=cfg,
|
||||||
fp=got)
|
fp=got)
|
||||||
eq(got.getvalue(), '''\
|
eq(frozenset(got.getvalue().splitlines(True)),
|
||||||
quux
|
frozenset(['quux\n', 'foo%2Fbar John+Doe\n']))
|
||||||
foo%2Fbar John+Doe
|
|
||||||
''')
|
|
||||||
|
|
||||||
def test_projectsList_reallyEndsWithGit():
|
def test_projectsList_reallyEndsWithGit():
|
||||||
tmp = maketemp()
|
tmp = maketemp()
|
||||||
|
|
Loading…
Reference in a new issue