Overview
This sets up the thing using setvar.
- A console cable
- The current firmware
Connect to it
Plug the cable in and open a session.
! U1 setvar "device.languages" "epl"
| Setting | Value |
|---|---|
| Baud | 9600 |
- First
- Second
See the vendor note for more.
"""Importing an HTML article as a guide. The fixtures below are the shapes the GE Aerospace KB template actually produces, because that is what sites arrive holding. Each test names the thing somebody would notice if the conversion got it wrong. """ import pytest from plugins.guides.services.htmlimport import parse from plugins.guides.services.blocks import validate ARTICLE = """
Should not become a paragraph
This sets up the thing using setvar.
Plug the cable in and open a session.
! U1 setvar "device.languages" "epl"
| Setting | Value |
|---|---|
| Baud | 9600 |
See the vendor note for more.
Look at this:
' '
')
assert parsed['images'] == []
assert any('not embedded' in note for note in parsed['skipped'])
def test_a_malformed_article_still_imports():
"""Real articles have unclosed tags. Refusing one is worse than dropping a
div nobody can see."""
parsed = parse('One
Two') assert parsed['title'] == 'Half' assert [b['text'] for b in parsed['blocks']] == ['One', 'Two'] def test_the_title_falls_back_to_the_document_title(): parsed = parse('
Body
') assert parsed['title'] == 'Only Here' def test_an_empty_document_produces_a_named_guide_and_no_blocks(): parsed = parse('') assert parsed['title'] == 'Untitled' assert parsed['blocks'] == [] def test_a_heading_carries_its_rank(): """Ticking a section off has to cross out what belongs to it, and nothing records that a sub-heading belongs to the heading above unless the level travels with them.""" parsed = parse('Intro.
' 'Detail.