gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-donations] branch master updated: mock and nose for


From: gnunet
Subject: [GNUnet-SVN] [taler-donations] branch master updated: mock and nose for testing
Date: Mon, 11 Dec 2017 16:29:10 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository donations.

The following commit(s) were added to refs/heads/master by this push:
     new 337245b  mock and nose for testing
337245b is described below

commit 337245b4d8ad7c8bc45a2be1dd67b71f796f7e7c
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Dec 11 16:28:55 2017 +0100

    mock and nose for testing
---
 Makefile.in                           | 3 +--
 setup.py                              | 2 ++
 talerdonations/donations/donations.py | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index c16dac2..38379a5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -49,5 +49,4 @@ install: $(templates) install-data
 .PHONY: check
 check:
        @export address@hidden@/talerdonations/tests.conf; \
-        export address@hidden@/lib/address@hidden@/site-packages; \
-        python3 talerdonations/tests.py
+        python3 setup.py test
diff --git a/setup.py b/setup.py
index 09cf479..f435e1c 100755
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,8 @@ setup(name='talerdonations',
       license='GPL',
       packages=find_packages(),
       install_requires=["Flask>=0.10"],
+      tests_require=["mock", "nose"],
+      test_suite="nose.collector",
       package_data={
           '':[
               "donations/templates/*.html",
diff --git a/talerdonations/donations/donations.py 
b/talerdonations/donations/donations.py
index 56a8c1e..9b3208a 100644
--- a/talerdonations/donations/donations.py
+++ b/talerdonations/donations/donations.py
@@ -23,8 +23,8 @@ import random
 from datetime import datetime
 import requests
 import flask
-from talerdonations.talerconfig import TalerConfig
-from talerdonations.helpers import (make_url, \
+from ..talerconfig import TalerConfig
+from ..helpers import (make_url, \
     expect_parameter, amount_from_float, \
     amount_to_float, join_urlparts, get_query_string, \
     MissingParameterException, backend_error)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]