Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
python [2019/01/11 00:17]
root [Logging Config via ini File]
python [2019/01/29 02:03] (current)
root [Python Transpiler]
Line 172: Line 172:
 r = requests.post(url,​ data=payload,​ headers=headers)4 r = requests.post(url,​ data=payload,​ headers=headers)4
 </​code>​ </​code>​
 +== Python Testing == 
 +* pytest https://​docs.pytest.org/​en/​latest/​
 +<code python>
 +def inc(x):
 +    return x + 1
 +
 +
 +def test_answer():​
 +    assert inc(3) == 5
 +</​code> ​   ​
 +
 +
 +
 == Python Transpiler ==  == Python Transpiler == 
 * [[https://​github.com/​atsepkov/​RapydScript | RapydScript]] is a pre-compiler for JavaScript. The syntax is very similar to Python, but allows JavaScript as well. This project was written as a cleaner alternative to CoffeeScript. * [[https://​github.com/​atsepkov/​RapydScript | RapydScript]] is a pre-compiler for JavaScript. The syntax is very similar to Python, but allows JavaScript as well. This project was written as a cleaner alternative to CoffeeScript.
 
python.1547194650.txt.gz · Last modified: 2019/01/11 00:17 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd