Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 22, 2024
1 parent eb742f5 commit 1a932e4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_changelog_parameters(self):
# It mustn't raise an exception
parameters = Parameters.make_from(
args={},
path_to_config_file=Path('does-not-exist.yml'),
path_to_config_file=Path("does-not-exist.yml"),
optional_configuration=True,
)
self.assertIsNone(parameters.plugin_path)
Expand All @@ -27,14 +27,12 @@ def test_global_parameters(self):
# A configuration file must exist.
with self.assertRaises(ConfigurationNotFound):
Parameters.make_from(
args={},
path_to_config_file=Path('does-not-exist.yml')
args={}, path_to_config_file=Path("does-not-exist.yml")
)

# Existing configuration file
parameters = Parameters.make_from(
args={},
path_to_config_file=Path("test/fixtures/pyproject.toml")
args={}, path_to_config_file=Path("test/fixtures/pyproject.toml")
)
self.assertEqual('qgis_plugin_CI_testing', parameters.plugin_path)
self.assertEqual("qgis_plugin_CI_testing", parameters.plugin_path)
self.assertEqual("CHANGELOG.md", parameters.changelog_path)

0 comments on commit 1a932e4

Please sign in to comment.