Improve SilenceLoggerTestCaseMixin

Make variables more unique. Add support to pass a custom logger
level.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-20 02:29:19 -04:00
parent 33d073e7a0
commit bfcad278aa
3 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class CheckVersionView(SimpleView):
'The version you are using is outdated. The latest version '
'is %s'
) % exception.upstream_version
except UnknownLatestVersion as exception:
except UnknownLatestVersion:
message = _(
'It is not possible to determine the latest version '
'available.'