This was missed during the snap template update, we expect %100 test
coverage in this project.
This also revealed a sneaky bug in the process. When the
jujulint.config.Config class got initialized it was using the sys.argv
of the pytest process, causing a testing error and not being able to
pass arguments to pytest.
Signed-off-by: Mert Kırpıcı <email address hidden>
Values set in $HOME/.config/juju-lint/config.yaml were ignored, due to
the default values of the ArgumentParser. This patch
- removes the default values from the parser
- adds default values to the config_default.yaml
- adds tests to check if the config files are read correctly
- fixed setup.py to accept subdirectories under the jujulint project
folder.
- changed the working directory when running functional tests with
the snap to not use local modules.
- updated contributing for func-smoke and func-dev to run functional
tests during development.
- fixed setup.py to accept subdirectories under the jujulint project
folder.
- changed the working directory when running functional tests with
the snap to not use local modules.
- updated contributing for func-smoke and func-dev to run functional
tests during development.
Added cli-parsing tests and fixed some smaller issues
- config-file mocking packed into its own function.
- mocking argv to check if cli values are read
- makes sure test_default_config doesnt read user-config