Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanweeks committed Jul 9, 2020
2 parents d576c28 + f3a610a commit 0df3efc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions grin_app/tests/view_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def test_index():
assert_ok(res)
assert len(res.content) > 0
html = res.content
assert '<html' in html
assert settings.BRANDING['site_abbrev'] in html
assert settings.BRANDING['site_heading'] in html
assert settings.BRANDING['home_url'] in html
assert settings.BRANDING['logo_url'] in html
assert settings.BRANDING['site_subheading'] in html
assert b'<html' in html
assert settings.BRANDING['site_abbrev'].encode() in html
assert settings.BRANDING['site_heading'].encode() in html
assert settings.BRANDING['home_url'].encode() in html
assert settings.BRANDING['logo_url'].encode() in html
assert settings.BRANDING['site_subheading'].encode() in html


def test_search():
Expand Down
2 changes: 1 addition & 1 deletion grin_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def evaluation_metadata(req):
}
where_clauses = [
val['sql'] for
key, val in GRIN_ACC_WHERE_FRAGS.items() + GRIN_EVAL_WHERE_FRAGS.items()
key, val in {**GRIN_ACC_WHERE_FRAGS, **GRIN_EVAL_WHERE_FRAGS}.items()
if val['include'](sql_params)
]
if len(where_clauses) == 0:
Expand Down

0 comments on commit 0df3efc

Please sign in to comment.