mirror of https://github.com/dcarrillo/digaws.git
Compare commits
3 Commits
fda5957a04
...
a3517a25ab
Author | SHA1 | Date |
---|---|---|
Daniel Carrillo | a3517a25ab | |
Daniel Carrillo | 204ec8f9ff | |
Daniel Carrillo | ef31af865a |
|
@ -1,2 +1,2 @@
|
|||
__version__ = '1.0.3'
|
||||
__version__ = '1.0.4'
|
||||
__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']})
|
||||
data.append(item_dict)
|
||||
|
||||
if data:
|
||||
print(json.dumps(data, indent=2))
|
||||
print(json.dumps(data, indent=2))
|
||||
|
||||
|
||||
class DigAWS():
|
||||
|
|
|
@ -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:
|
||||
digaws.get_aws_ip_ranges()
|
||||
assert e.startswith('Unexpected response from')
|
||||
|
||||
assert e.match('^Unexpected response from')
|
||||
|
|
Loading…
Reference in New Issue