From 2fa97766c7017e177cce50cd2baa4e8b1c4955cd Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Thu, 4 Jun 2020 18:12:49 +0200
Subject: [PATCH] [test] #285: Add copyright header in tests source files

---
 tests/patched.py         | 17 +++++++++++++++++
 tests/test_end_to_end.py | 17 +++++++++++++++++
 tests/test_tx.py         | 17 +++++++++++++++++
 tests/test_tx_history.py | 17 +++++++++++++++++
 tests/test_unit_cert.py  | 17 +++++++++++++++++
 tests/test_unit_tx.py    | 17 +++++++++++++++++
 6 files changed, 102 insertions(+)

diff --git a/tests/patched.py b/tests/patched.py
index 4fcc2c7d..7c0eff47 100644
--- a/tests/patched.py
+++ b/tests/patched.py
@@ -1,3 +1,20 @@
+"""
+Copyright  2016-2020 Maël Azimi <m.a@moul.re>
+
+Silkaj is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Silkaj is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
+"""
+
 # This file contains patched functions for testing purposes.
 
 from silkaj.constants import G1_SYMBOL
diff --git a/tests/test_end_to_end.py b/tests/test_end_to_end.py
index 563a8a39..e761c2d1 100644
--- a/tests/test_end_to_end.py
+++ b/tests/test_end_to_end.py
@@ -1,3 +1,20 @@
+"""
+Copyright  2016-2020 Maël Azimi <m.a@moul.re>
+
+Silkaj is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Silkaj is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
+"""
+
 from subprocess import check_output
 
 silkaj = ["poetry", "run", "silkaj"]
diff --git a/tests/test_tx.py b/tests/test_tx.py
index 6a6a9518..4ac609cd 100644
--- a/tests/test_tx.py
+++ b/tests/test_tx.py
@@ -1,3 +1,20 @@
+"""
+Copyright  2016-2020 Maël Azimi <m.a@moul.re>
+
+Silkaj is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Silkaj is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
+"""
+
 import pytest
 from click.testing import CliRunner
 from silkaj.tx import transaction_amount
diff --git a/tests/test_tx_history.py b/tests/test_tx_history.py
index feae06b7..60111fbc 100644
--- a/tests/test_tx_history.py
+++ b/tests/test_tx_history.py
@@ -1,3 +1,20 @@
+"""
+Copyright  2016-2020 Maël Azimi <m.a@moul.re>
+
+Silkaj is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Silkaj is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
+"""
+
 import pytest
 from duniterpy.api.client import Client
 from silkaj.tx_history import (
diff --git a/tests/test_unit_cert.py b/tests/test_unit_cert.py
index da7d7f6f..9f7092e0 100644
--- a/tests/test_unit_cert.py
+++ b/tests/test_unit_cert.py
@@ -1,3 +1,20 @@
+"""
+Copyright  2016-2020 Maël Azimi <m.a@moul.re>
+
+Silkaj is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Silkaj is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
+"""
+
 from unittest.mock import patch
 
 from silkaj.cert import certification_confirmation
diff --git a/tests/test_unit_tx.py b/tests/test_unit_tx.py
index 1a6f352f..11df8bf8 100644
--- a/tests/test_unit_tx.py
+++ b/tests/test_unit_tx.py
@@ -1,3 +1,20 @@
+"""
+Copyright  2016-2020 Maël Azimi <m.a@moul.re>
+
+Silkaj is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Silkaj is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
+"""
+
 import pytest
 from silkaj.tx import (
     truncBase,
-- 
GitLab