ssh-audit/test
Jürgen Gmach bf1fbbfa43
Fix RuntimeError for the JSON export (#44)
* Fix RuntimeError for the JSON export

It is never a good idea to modify an iterable while iterating over it.

Copying the iterable fixes #41

modified:   ssh-audit.py

* Add test case for #41

new file:   test/test_build_struct.py

* Fix linting error

modified:   test/test_build_struct.py
2020-07-03 14:56:46 -04:00
..
docker Upgraded 1024-bit modulus warning to failure. 2020-06-30 22:51:13 -04:00
stubs Upgrade to Mypy 0.470. Add colorama stub. Fix identation. 2017-01-23 19:34:06 +02:00
tools Fix tox and finally make Travis green (#29) 2020-06-08 16:38:22 -04:00
conftest.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_auditconf.py Added policy checks (#10). 2020-06-30 15:53:50 -04:00
test_banner.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_buffer.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_build_struct.py Fix RuntimeError for the JSON export (#44) 2020-07-03 14:56:46 -04:00
test_errors.py Added policy checks (#10). 2020-06-30 15:53:50 -04:00
test_output.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_policy.py Removed header processing from policy checks, as this did not function the way users would expect. 2020-07-01 13:12:49 -04:00
test_resolve.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_socket.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_software.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_ssh_algorithm.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00
test_ssh1.py Added policy checks (#10). 2020-06-30 15:53:50 -04:00
test_ssh2.py Added policy checks (#10). 2020-06-30 15:53:50 -04:00
test_utils.py Remove native text converter (#38) 2020-06-16 22:50:07 -04:00
test_version_compare.py Remove some more Python 2 leftovers (#37) 2020-06-15 17:05:31 -04:00