diff --git a/setup.py b/setup.py index a328eab..45c828f 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,6 @@ @author: travis """ import os -import re from setuptools import setup, find_packages diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.py index e283220..e1db15b 100644 --- a/tests/test_cli/test_cli.py +++ b/tests/test_cli/test_cli.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """CLI tests.""" # pylint: disable=too-many-lines +import sys import pathlib import tempfile from difflib import SequenceMatcher @@ -253,6 +254,9 @@ def test_make_maps( supply_curve_file = map_supply_curve_wind.as_posix() elif tech == "solar": supply_curve_file = map_supply_curve_solar.as_posix() + else: + print("No tech type is assigned.") + sys.exit(1) with tempfile.TemporaryDirectory() as tempdir: output_path = pathlib.Path(tempdir) @@ -952,7 +956,7 @@ def test_histogram_default_bins( '-W', 75, '-H', 15 ], - terminal_width=1000 # needed for height to be applied correctly + terminal_width=1000 # needed for height to be applied correctly ) assert result.exit_code == 0, ( f"Command failed with error {result.exception}" @@ -987,7 +991,7 @@ def test_histogram_5bins( '-H', 15, '-N', 5 ], - terminal_width=1000 # needed for height to be applied correctly + terminal_width=1000 # needed for height to be applied correctly ) assert result.exit_code == 0, ( f"Command failed with error {result.exception}" @@ -1022,7 +1026,7 @@ def test_histogram_nonnumeric_column( '-W', 75, '-H', 15 ], - terminal_width=1000 # needed for height to be applied correctly + terminal_width=1000 # needed for height to be applied correctly ) assert result.exit_code == 0, ( f"Command failed with error {result.exception}" diff --git a/tests/test_utils/test_plots.py b/tests/test_utils/test_plots.py index 72e7a1f..92dc4d4 100644 --- a/tests/test_utils/test_plots.py +++ b/tests/test_utils/test_plots.py @@ -286,7 +286,7 @@ def test_map_geodataframe_column_boundaries_kwargs( @pytest.mark.maptest @pytest.mark.filterwarnings("ignore:Geometry is in a geographic:UserWarning") def test_map_geodataframe_polygons( - data_dir_test, supply_curve_gdf, county_background_gdf, states_gdf, + *, data_dir_test, supply_curve_gdf, county_background_gdf, states_gdf, counties_gdf, compare_images_approx ): """