def test_add_report_to_db_pg_auth_rep_group_lang_none():
"""
This should raise HTTPNotFound as all page, author, reporter, group, and language is None.
"""
request = _mock_request(authenticated_user=mock.Mock(username="test"),
matchdict={'public_language_id': '12345',
'public_group_id': '12345',
'user_id': '12345',
'page_uri': 'http://www.annotran_test.com/'})
with pytest.raises(exc.HTTPNotFound):
views.add_report(request)
评论列表
文章目录