51Degrees Pipeline for Python

tests.test_javascriptbuilder_sequence Namespace Reference

Detailed Description

The script must parse whatever the pipeline holds. The sequence is written
into the script as bare code and the session id inside quotes, and both come
from the SequenceElement, so every pipeline here has one. A pipeline without
a SequenceElement renders sequence 1 and an empty session id, which
test_javascriptbuilder_no_sequence.py covers.

The script is checked with "node --check", which needs Node on the path.
Every GitHub hosted runner has it.

Classes

class  JavaScriptBuilderSequenceTests

Functions

 _render (evidence=None, minify=False, sequence_element=True)
 _line (script, name)

Variables

 NODE = shutil.which("node")

Function Documentation

◆ _line()

_line ( script,
name )
protected

◆ _render()

_render ( evidence = None,
minify = False,
sequence_element = True )
protected
Render the script. The JSON builder fails without a sequence number,
so the pipeline always has the SequenceElement.

Variable Documentation

◆ NODE

tests.test_javascriptbuilder_sequence.NODE = shutil.which("node")