Add tests for app/print_table.py (#15)
* Add tests for app/print_table.py * Exclude app/version and app/args from coverage * Remove app/main from coverage (just uses other modules)
This commit is contained in:
@ -7,7 +7,7 @@ import sys
|
||||
from app.args import parse_args
|
||||
from app.print_table import print_table, generate_prefix_string
|
||||
from app.query_normalisation import is_ip_address, resolve_domain_name
|
||||
from app.ip_info import ( # pragma: no cover
|
||||
from app.ip_info import (
|
||||
get_ip_information,
|
||||
get_autonomous_system_number,
|
||||
get_prefix_information,
|
||||
|
@ -18,6 +18,6 @@ def generate_prefix_string(prefixes: list) -> Union[str, None]:
|
||||
return None
|
||||
|
||||
|
||||
def print_table(table_data) -> None:
|
||||
def print_table(table_data) -> None: # pragma: no cover
|
||||
"""Print table generated by tabulate."""
|
||||
print(tabulate(table_data))
|
||||
|
Reference in New Issue
Block a user