Showing 1 of 2 files from the diff.
Other files ignored by Codecov
tests/test_api.py has changed.

@@ -60,7 +60,14 @@
Loading
60 60
       - *modules*: One or more modules to render reference documentation for
61 61
    """
62 62
    directory = directory if directory else os.getcwd()
63 -
    server(directory=directory, config_file=config_file, open_browser=True, modules=modules)
63 +
    server(
64 +
        directory=directory,
65 +
        config_file=config_file,
66 +
        open_browser=True,
67 +
        port=port,
68 +
        host=host,
69 +
        modules=modules,
70 +
    )
64 71
65 72
66 73
def server(
@@ -85,6 +92,8 @@
Loading
85 92
    api = hug.API("Doc Server")
86 93
87 94
    project_config = project_configuration(directory, config_file, modules=modules)
95 +
    host = host or project_config["host"]
96 +
    port = port or project_config["port"]
88 97
    with render.documentation_in_temp_folder(project_config) as doc_folder:
89 98
90 99
        @hug.static("/", api=api)
@@ -95,14 +104,9 @@
Loading
95 104
        def custom_startup(*args, **kwargs):  # pragma: no cover
96 105
            print(logo.ascii_art)
97 106
            if open_browser:
98 -
                webbrowser.open_new(f"http://{project_config['host']}:{project_config['port']}")
107 +
                webbrowser.open_new(f"http://{host}:{port}")
99 108
100 -
        api.http.serve(
101 -
            host=host or project_config["host"],
102 -
            port=port or project_config["port"],
103 -
            no_documentation=True,
104 -
            display_intro=False,
105 -
        )
109 +
        api.http.serve(host=host, port=port, no_documentation=True, display_intro=False)
106 110
107 111
108 112
def project_configuration(
Files Coverage
portray 100.00%
Project Totals (8 files) 100.00%
153.1
3.6=.6
TRAVIS_OS_NAME=linux
153.2
3.7=.7
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading