Пример #1
0
def test_note_view_route_annotate(live_server, sl_operator, test_note):  # pylint: disable=unused-argument
    """test note annotation from view route"""

    sl_operator.get(
        url_for('storage.note_view_route',
                note_id=test_note.id,
                _external=True))
    check_annotate(sl_operator, 'abutton_annotate_view', test_note)
Пример #2
0
def test_note_list_route_annotate(live_server, sl_operator, test_note):  # pylint: disable=unused-argument
    """test annotation from list route"""

    sl_operator.get(url_for('storage.note_list_route', _external=True))
    dt_rendered(sl_operator, 'note_list_table', test_note.comment)
    check_annotate(sl_operator, 'abutton_annotate_dt', test_note)
Пример #3
0
def test_vuln_view_route_annotate(live_server, sl_operator, vuln):  # pylint: disable=unused-argument
    """test vuln annotation from view route"""

    sl_operator.get(url_for('storage.vuln_view_route', vuln_id=vuln.id, _external=True))
    check_annotate(sl_operator, 'abutton_annotate_view', vuln)