Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 1462475: Drop db fixture from test
Browse files Browse the repository at this point in the history
The db fixture was needed by the zone middleware, which is gone.
  • Loading branch information
jwhitlock committed Aug 6, 2018
1 parent e0bcf46 commit b2f05af
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions kuma/wiki/tests/test_views_document.py
Expand Up @@ -108,12 +108,8 @@ def authkey(wiki_user):
'http_method', ['put', 'post', 'delete', 'options', 'head'])
@pytest.mark.parametrize(
'endpoint', ['children', 'toc', 'json', 'json_slug'])
def test_disallowed_methods(client, db, http_method, endpoint):
"""
HTTP methods other than GET & HEAD are not allowed.
TODO: Remove db fixture when bug 1462475 (disable zone URL root) is fixed.
"""
def test_disallowed_methods(client, http_method, endpoint):
"""HTTP methods other than GET & HEAD are not allowed."""
kwargs = None
if endpoint != 'json':
kwargs = dict(document_path='Web/CSS')
Expand Down

0 comments on commit b2f05af

Please sign in to comment.