Deltares / ddlpy

API to Dutch Rijkswaterstaat archive (DDL, waterinfo.rws.nl) of monitoring water data
https://deltares.github.io/ddlpy/
GNU General Public License v3.0
20 stars 6 forks source link

fix test_command_line_interface() testcase #31

Closed veenstrajelmer closed 8 months ago

veenstrajelmer commented 8 months ago

Description

test_command_line_interface() testcase gives AssertionError for assert 'ddlpy.cli' in result.output

What I Did

from click.testing import CliRunner
from ddlpy import cli

"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.cli)
assert result.exit_code == 0
assert 'ddlpy.cli' in result.output
help_result = runner.invoke(cli.main, ['--help'])
assert help_result.exit_code == 0
assert '--help  Show this message and exit.' in help_result.output