[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated (b
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated (bd3e5ba -> 924a487) |
Date: |
Mon, 20 Feb 2017 19:12:55 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a change to branch master
in repository merchant-frontend-examples.
from bd3e5ba Merge branch 'master' of taler.net:merchant-frontend-examples
new cffde32 Makefile for pytaler
new 924a487 Testcase pytaler.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Python/Makefile | 5 +++++
Python/pytaler/amounts.py | 4 ++++
2 files changed, 9 insertions(+)
create mode 100644 Python/Makefile
diff --git a/Python/Makefile b/Python/Makefile
new file mode 100644
index 0000000..ec2ca0f
--- /dev/null
+++ b/Python/Makefile
@@ -0,0 +1,5 @@
+all:
+ pip3 install . --install-option="--prefix=$(TALER_PREFIX)"
+
+check:
+ python3 pytaler/tests.py
diff --git a/Python/pytaler/amounts.py b/Python/pytaler/amounts.py
index d39663f..ee7b0d1 100644
--- a/Python/pytaler/amounts.py
+++ b/Python/pytaler/amounts.py
@@ -28,6 +28,10 @@ def amount_sum(a1, a2):
"currency": a1["currency"]}
return ret
+# True if a1 == a2
+def same_amount(a1, a2):
+ return a1["value"] == a2["value"] and a1["fraction"] == a2["fraction"] and
a1["currency"] == a2["currency"]
+
# Computes a1 - a2
def amount_sub(a1, a2):
assert(a1["currency"] == a2["currency"])
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-merchant-frontend-examples] branch master updated (bd3e5ba -> 924a487),
gnunet <=