Skip to content

Add tests for config file parsing #22

Description

@guyfawcus

Although these lines are tested:

ArchMap/archmap.py

Lines 360 to 367 in 202aff5

verbosity = config.getint('extras', 'verbosity', fallback=default_verbosity)
pretty = config.getboolean('extras', 'pretty', fallback=default_pretty)
input_url = config.get('files', 'url', fallback=default_url)
input_file = config.get('files', 'file', fallback=default_file)
output_file_text = config.get('files', 'text', fallback=default_text)
output_file_geojson = config.get('files', 'geojson', fallback=default_geojson)
output_file_kml = config.get('files', 'kml', fallback=default_kml)
output_file_csv = config.get('files', 'csv', fallback=default_csv)

...it's actually only the fallback values that are used.

Some tests should be added that read the default configuration file, run the script then check the output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions