Skip to content

Commit

Permalink
Merge pull request ckan#3391 from ckan/3391-circle-perf-fix
Browse files Browse the repository at this point in the history
some tests running on all circleci containers
  • Loading branch information
amercader authored Jan 10, 2017
2 parents 1d0cee3 + e3ab381 commit 61ba91f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .circleci-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
env:
- SEGMENTS="0123"
- SEGMENTS="4567"
- SEGMENTS="01234"
- SEGMENTS="567"
- SEGMENTS="89ab"
- SEGMENTS="cdef"

Expand Down
15 changes: 6 additions & 9 deletions ckan/ckan_nose_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,14 @@ def options(self, parser, env):
help='drop database and reinitialize before tests are run')

def wantClass(self, cls):
name = cls.__name__

wanted = (not cls.__name__.startswith('_')
and (issubclass(cls, unittest.TestCase)
or re.search('(?:^|[\b_\./-])[Tt]est', name)
))

if self.segments and str(hashlib.md5(name).hexdigest())[0] not in self.segments:
if self.segments and str(hashlib.md5(
cls.__name__).hexdigest())[0] not in self.segments:
return False

return wanted
def wantFunction(self, fn):
if self.segments and hashlib.md5(
fn.__name__).hexdigest()[0] not in self.segments:
return False

def finalize(self, report):
if self.segments:
Expand Down
Binary file modified ckan/i18n/fr/LC_MESSAGES/ckan.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion ckan/i18n/fr/LC_MESSAGES/ckan.po
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ msgstr[1] "Il y a plus de {years} ans"

#: ckan/lib/formatters.py:148
msgid "{month} {day}, {year}, {hour:02}:{min:02} ({timezone})"
msgstr "{month} {day}, {year}, {heure:02}:{min:02} ({timezone})"
msgstr "{month} {day}, {year}, {hour:02}:{min:02} ({timezone})"

#: ckan/lib/formatters.py:153
msgid "{month} {day}, {year}"
Expand Down

0 comments on commit 61ba91f

Please sign in to comment.