Changeset 30:d5fde7cc2958 in pyenvjasmine for pyenvjasmine/tests/test_runner.py
- Timestamp:
- Jan 18, 2018, 12:57:09 PM (6 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pyenvjasmine/tests/test_runner.py
r26 r30 14 14 success, stdout = jstests.run() 15 15 assert success 16 # output is the resulting stdout from a subprocess call, which is a 17 # bytes object, hence the b'' for the checks 18 assert b'Failed: 0' in stdout 19 assert b'Passed: 5' in stdout 16 assert 'Failed: 0' in stdout 17 assert 'Passed: 5' in stdout 20 18 21 19 def test_runner_params(self): … … 34 32 success, stdout = jstests.run(spec='tests/specs/test_demo.spec.js') 35 33 lines = stdout.splitlines() 36 # output is the resulting stdout from a subprocess call, which is a 37 # bytes object, hence the b'' in the endswith/startswith calls 38 assert lines[0].endswith(b'specs/test_demo.spec.js') 39 assert lines[1].startswith(b'[ Envjs/1.6 (Rhino;') 40 assert b'Passed: 4' in lines 41 assert b'Failed: 0' in lines 42 assert b'Total : 4' in lines 34 assert lines[0].endswith('specs/test_demo.spec.js') 35 assert lines[1].startswith('[ Envjs/1.6 (Rhino;') 36 assert 'Passed: 4' in lines 37 assert 'Failed: 0' in lines 38 assert 'Total : 4' in lines 43 39 44 40 def test_write_browser_htmlfile_markup_is_correct(self):
Note:
See TracChangeset
for help on using the changeset viewer.