[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-taler-util] 50/51: Make tests work again.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-taler-util] 50/51: Make tests work again. |
Date: |
Mon, 23 Sep 2019 22:02:41 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository taler-util.
commit f131b3aae962602e3383f594a2c1aa90672fa4dc
Author: ng0 <address@hidden>
AuthorDate: Mon Sep 23 19:58:57 2019 +0000
Make tests work again.
---
tests/log_test.py | 6 +++---
tests/test_amount.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/log_test.py b/tests/log_test.py
index 90e12c1..82d1ce2 100755
--- a/tests/log_test.py
+++ b/tests/log_test.py
@@ -26,7 +26,7 @@
# manually copied into any project which might need it.
from unittest import TestCase
-from gnunet_log import GnunetLogger as GL
+from taler.util.gnunet_log import GnunetLogger as GL
import os
from mock import patch, MagicMock
import logging
@@ -126,7 +126,7 @@ class TestGnunetLog(TestCase):
@patch("logging.basicConfig")
def test_non_forced_env(self, mocked_basicConfig, mocked_setLevel):
assert None == os.environ.get("GNUNET_FORCE_LOG")
- os.environ["GNUNET_LOG"] =
"gnunet-pylog;test.py;test_non_forced_env;99;ERROR" # lineno is not 100%
accurate.
+ os.environ["GNUNET_LOG"] =
"gnunet-pylog;log_test.py;test_non_forced_env;99;ERROR" # lineno is not 100%
accurate.
gl = GL("gnunet-pylog")
gl.log("msg", gl.DEBUG)
mocked_setLevel.assert_called_with(level=logging.ERROR)
@@ -145,7 +145,7 @@ class TestGnunetLog(TestCase):
@patch("logging.basicConfig")
def test_only_forced_env(self, mocked_basicConfig, mocked_setLevel):
assert None == os.environ.get("GNUNET_LOG")
- os.environ["GNUNET_FORCE_LOG"] =
"gnunet-pylog;test.py;test_only_forced_env;90-200;ERROR"
+ os.environ["GNUNET_FORCE_LOG"] =
"gnunet-pylog;log_test.py;test_only_forced_env;90-200;ERROR"
gl = GL("gnunet-pylog")
gl.log("msg", gl.DEBUG)
mocked_setLevel.assert_called_with(level=logging.ERROR)
diff --git a/tests/test_amount.py b/tests/test_amount.py
index 41b9037..05620f4 100755
--- a/tests/test_amount.py
+++ b/tests/test_amount.py
@@ -23,7 +23,7 @@
# which might need it.
from __future__ import unicode_literals
-from amount import Amount, BadFormatAmount, NumberTooBig, NegativeNumber
+from taler.util.amount import Amount, BadFormatAmount, NumberTooBig,
NegativeNumber
from unittest import TestCase
import json
from mock import MagicMock
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [taler-taler-util] 20/51: 4453., (continued)
- [GNUnet-SVN] [taler-taler-util] 20/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 22/51: 4453, use regex., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 15/51: Update amount., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 21/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 23/51: fetch caller's metadata., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 29/51: rename function, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 30/51: Testing env var GNUNET_LOG., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 32/51: 4453. Testing mixed situation,, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 37/51: fix after file rename, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 38/51: 4453. Test GNUNET_FORCE_LOGFILE., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 50/51: Make tests work again.,
gnunet <=
- [GNUnet-SVN] [taler-taler-util] 33/51: 4453. Test manual loglevel setup and nonforced env., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 27/51: syntax, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 34/51: 4453. Test for GNUNET_LOG and GNUNET_FORCE_LOG both defined., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 39/51: Log: fix line interval parsing (care about one number case.), gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 31/51: 4453. Test only manual loglevel setup., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 28/51: Testing 4453 with unittest. First batch., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 43/51: Add a .dir-locals, el for configuring emacs for this project, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 44/51: ux, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 46/51: gitignore, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 36/51: Remove old test, gnunet, 2019/09/23