mirror of
https://github.com/dcarrillo/digaws.git
synced 2025-07-05 12:39:26 +00:00
Compare commits
5 Commits
1.0.3
...
61970f6679
Author | SHA1 | Date | |
---|---|---|---|
61970f6679 | |||
613727ef5a
|
|||
a3517a25ab | |||
204ec8f9ff
|
|||
ef31af865a
|
@ -1,2 +1,2 @@
|
|||||||
__version__ = '1.0.3'
|
__version__ = '1.0.4'
|
||||||
__description__ = 'Look up canonical information for AWS IP addresses and networks'
|
__description__ = 'Look up canonical information for AWS IP addresses and networks'
|
||||||
|
@ -127,8 +127,7 @@ class DigAWSPrettyPrinter:
|
|||||||
item_dict.update({'network_border_group': prefix['network_border_group']})
|
item_dict.update({'network_border_group': prefix['network_border_group']})
|
||||||
data.append(item_dict)
|
data.append(item_dict)
|
||||||
|
|
||||||
if data:
|
print(json.dumps(data, indent=2))
|
||||||
print(json.dumps(data, indent=2))
|
|
||||||
|
|
||||||
|
|
||||||
class DigAWS():
|
class DigAWS():
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
import nox
|
import nox
|
||||||
|
|
||||||
|
|
||||||
nox.options.sessions = ['lint', 'typing', 'tests']
|
nox.options.sessions = ['lint', 'typing', 'tests']
|
||||||
locations = ['noxfile.py', 'setup.py', 'digaws/', 'tests/']
|
locations = ['noxfile.py', 'setup.py', 'digaws/', 'tests/']
|
||||||
|
|
||||||
lint_common_args = ['--max-line-length', '120']
|
lint_common_args = ['--max-line-length', '120']
|
||||||
mypy_args = ['--ignore-missing-imports']
|
mypy_args = ['--ignore-missing-imports', '--install-types', '--non-interactive']
|
||||||
|
|
||||||
pytest_args = ['--cov=digaws', '--cov-report=', 'tests/']
|
pytest_args = ['--cov=digaws', '--cov-report=', 'tests/']
|
||||||
coverage_args = ['report', '--show-missing', '--fail-under=80']
|
coverage_args = ['report', '--show-missing', '--fail-under=80']
|
||||||
|
|
||||||
|
@ -84,4 +84,5 @@ def test_get_aws_ip_ranges_invalid_status(mocker, fs, create_cache_dir) -> None:
|
|||||||
|
|
||||||
with pytest.raises(digaws.UnexpectedRequestException) as e:
|
with pytest.raises(digaws.UnexpectedRequestException) as e:
|
||||||
digaws.get_aws_ip_ranges()
|
digaws.get_aws_ip_ranges()
|
||||||
assert e.startswith('Unexpected response from')
|
|
||||||
|
assert e.match('^Unexpected response from')
|
||||||
|
Reference in New Issue
Block a user