summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-05-18 17:09:25 +0100
committerStephen Finucane <stephenfin@redhat.com>2020-05-27 09:41:30 +0000
commit45a88f08b4e881f0fc0039dc56c0223139850c64 (patch)
tree4427743e43890e6168c022adc31480fd24f5d683 /tox.ini
parent21fecc7060179ab62564db901ea932a1f723020e (diff)
downloadnova-45a88f08b4e881f0fc0039dc56c0223139850c64.tar.gz
hacking: Modify checks for translated logs
The N319 check previously asserted that debug-level logs were not translated. Now that we've removed all log translations, we can generalize this to all logs. We reuse the same number since these numbers are really just metadata and not public contracts. This also allows us to update the N323 and N326 checks, which ensure we import the translation function, '_', wherever it's used and don't concatenate translated and non-translated strings. Since we're no longer translating logs and the '_LE', '_LW' and '_LI' symbols are no longer provided, we don't need to consider logs in either of these cases. Change-Id: I64d139ad660bc382e8b9d7c8cd03352b26aadafd Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 214a8c75f5..d81cec0a79 100644
--- a/tox.ini
+++ b/tox.ini
@@ -272,7 +272,7 @@ extension =
N316 = checks:assert_true_instance
N317 = checks:assert_equal_type
N335 = checks:assert_raises_regexp
- N319 = checks:no_translate_debug_logs
+ N319 = checks:no_translate_logs
N337 = checks:no_import_translation_in_tests
N320 = checks:no_setting_conf_directly_in_tests
N322 = checks:no_mutable_default_args