diff --git a/caluma/caluma_analytics/management/commands/run_analytics.py b/caluma/caluma_analytics/management/commands/run_analytics.py index 4e1df31ba..9f87297fc 100644 --- a/caluma/caluma_analytics/management/commands/run_analytics.py +++ b/caluma/caluma_analytics/management/commands/run_analytics.py @@ -106,7 +106,11 @@ def _rowkey(val): ] ) print(format_string.format(**col_labels)) - print(format_string.format(**{k: "-" * l for k, l in col_lengths.items()})) + print( + format_string.format( + **{col: "-" * length for col, length in col_lengths.items()} + ) + ) for rec in records: fdata = {_rowkey(k): str(v) for k, v in rec.items()} diff --git a/caluma/caluma_core/tests/test_mutation_params.py b/caluma/caluma_core/tests/test_mutation_params.py index 76dfea329..75af2b312 100644 --- a/caluma/caluma_core/tests/test_mutation_params.py +++ b/caluma/caluma_core/tests/test_mutation_params.py @@ -79,7 +79,7 @@ def check_perm(self, mutation, info): assert len(params) == 1 assert len(params["input"]) == 3 assert params["input"]["slug"] == "email_addr" - assert type(params["input"]["format_validators"]) is list + assert isinstance(params["input"]["format_validators"], list) return True mocker.patch(f"{__name__}._TestPermission.permission_impl", check_perm) diff --git a/caluma/settings/caluma.py b/caluma/settings/caluma.py index 564c427b2..af858bb91 100644 --- a/caluma/settings/caluma.py +++ b/caluma/settings/caluma.py @@ -1,7 +1,8 @@ """ -This settings module only contains caluma specific settings. +Caluma specific settings. -It's imported by the main caluma settings and is intended to also be used by third party +This settings module only contains caluma-internal settings. It's imported +by the main caluma settings and is intended to also be used by third party applications integrating Caluma. """