Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/test/test_createNightlies.py

Issue 29375570: Issue 4880 - Change create nightlies test_copy_repository to use set (Closed) Base URL: https://hg.adblockplus.org/sitescripts
Patch Set: Created Feb. 13, 2017, 11:11 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/test/test_createNightlies.py
===================================================================
--- a/sitescripts/extensions/test/test_createNightlies.py
+++ b/sitescripts/extensions/test/test_createNightlies.py
@@ -50,17 +50,18 @@
def test_current_revision(nightlybuild):
# The hash is the commit that the safari bookmark points to.
# (see adblockplusnightly.bookmark in test/data/bookmarks)
assert nightlybuild.revision == '1291590ddd0f'
def test_copy_repository(nightlybuild, nightlydir):
nightlybuild.copyRepository()
- assert os.listdir(nightlybuild.tempdir) == ['.hg', 'README.txt']
+ files = os.listdir(nightlybuild.tempdir)
+ assert set(files) == {'.hg', 'README.txt'}
def test_get_changes(nightlybuild, nightlydir):
# The bookmark 'safari' contains only 2 revisions
# default contains 51 so here we ensure that erroneous changes
# are not returned
for change in nightlybuild.getChanges():
assert change['revision'] < '2'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld