From 62ee904d192c067cef8f2836d5c7242b34e4ff2a Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Wed, 20 Mar 2024 15:46:36 +0100 Subject: [PATCH] make black happy --- test/test_config.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/test/test_config.py b/test/test_config.py index be28b62..4d23e33 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -5,6 +5,7 @@ License: MIT """ + import pytest from config import config, ConfigError, validate_config @@ -63,37 +64,27 @@ def test_config(): validate_config(config) _reset_config() - with pytest.raises( - ConfigError, match="Config error: Incorrect Local driver settings" - ): + with pytest.raises(ConfigError, match="Config error: Incorrect Local driver settings"): config.update({"DRIVER": "local", "LOCAL__DEST": None}) validate_config(config) _reset_config() - with pytest.raises( - ConfigError, match="Config error: Incorrect MinIO driver settings" - ): + with pytest.raises(ConfigError, match="Config error: Incorrect MinIO driver settings"): config.update({"DRIVER": "minio", "MINIO__ENDPOINT": None}) validate_config(config) _reset_config() - with pytest.raises( - ConfigError, match="Config error: Allowed extensions can not be empty" - ): + with pytest.raises(ConfigError, match="Config error: Allowed extensions can not be empty"): config.update({"ALLOWED_EXTENSIONS": []}) validate_config(config) _reset_config() - with pytest.raises( - ConfigError, match="Config error: References list can not be empty" - ): + with pytest.raises(ConfigError, match="Config error: References list can not be empty"): config.update({"REFERENCES": []}) validate_config(config) _reset_config() - with pytest.raises( - ConfigError, match="Config error: Incorrect media reference settings" - ): + with pytest.raises(ConfigError, match="Config error: Incorrect media reference settings"): config.update({"REFERENCES": [{"file": "survey.gpkg"}]}) validate_config(config)