summaryrefslogtreecommitdiff
path: root/tests/farm/html/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/farm/html/src')
-rw-r--r--tests/farm/html/src/a.py3
-rw-r--r--tests/farm/html/src/b.py3
-rw-r--r--tests/farm/html/src/bom.py23
-rw-r--r--tests/farm/html/src/here.py3
-rw-r--r--tests/farm/html/src/isolatin1.py5
-rw-r--r--tests/farm/html/src/m1.py3
-rw-r--r--tests/farm/html/src/m2.py3
-rw-r--r--tests/farm/html/src/m3.py3
-rw-r--r--tests/farm/html/src/main.py3
-rw-r--r--tests/farm/html/src/omit4.ini3
-rw-r--r--tests/farm/html/src/omit5.ini3
-rw-r--r--tests/farm/html/src/partial.py3
-rw-r--r--tests/farm/html/src/run_a_xml_2.ini3
-rw-r--r--tests/farm/html/src/tabbed.py3
-rw-r--r--tests/farm/html/src/unicode.py5
-rw-r--r--tests/farm/html/src/y.py3
16 files changed, 60 insertions, 12 deletions
diff --git a/tests/farm/html/src/a.py b/tests/farm/html/src/a.py
index 3c1119f..85764e2 100644
--- a/tests/farm/html/src/a.py
+++ b/tests/farm/html/src/a.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# A test file for HTML reporting by coverage.py.
if 1 < 2:
diff --git a/tests/farm/html/src/b.py b/tests/farm/html/src/b.py
index e57ceae..cb673c2 100644
--- a/tests/farm/html/src/b.py
+++ b/tests/farm/html/src/b.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# A test file for HTML reporting by coverage.py.
def one(x):
diff --git a/tests/farm/html/src/bom.py b/tests/farm/html/src/bom.py
index 1aff5d5..21d26ca 100644
--- a/tests/farm/html/src/bom.py
+++ b/tests/farm/html/src/bom.py
@@ -1,11 +1,14 @@
-# A Python source file in utf-8, with BOM.
-math = "3×4 = 12, ÷2 = 6±0"
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-import sys
-
-if sys.version_info >= (3, 0):
- assert len(math) == 18
- assert len(math.encode('utf-8')) == 21
-else:
- assert len(math) == 21
- assert len(math.decode('utf-8')) == 18
+# A Python source file in utf-8, with BOM.
+math = "3×4 = 12, ÷2 = 6±0"
+
+import sys
+
+if sys.version_info >= (3, 0):
+ assert len(math) == 18
+ assert len(math.encode('utf-8')) == 21
+else:
+ assert len(math) == 21
+ assert len(math.decode('utf-8')) == 18
diff --git a/tests/farm/html/src/here.py b/tests/farm/html/src/here.py
index 87e988b..fee9960 100644
--- a/tests/farm/html/src/here.py
+++ b/tests/farm/html/src/here.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# A test file for HTML reporting by coverage.py.
import other
diff --git a/tests/farm/html/src/isolatin1.py b/tests/farm/html/src/isolatin1.py
index 7a49b07..55a6f7d 100644
--- a/tests/farm/html/src/isolatin1.py
+++ b/tests/farm/html/src/isolatin1.py
@@ -1,5 +1,8 @@
-# A Python source file in another encoding.
# -*- coding: iso8859-1 -*-
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+# A Python source file in another encoding.
math = "34 = 12, 2 = 60"
assert len(math) == 18
diff --git a/tests/farm/html/src/m1.py b/tests/farm/html/src/m1.py
index 927e1f6..524fb0a 100644
--- a/tests/farm/html/src/m1.py
+++ b/tests/farm/html/src/m1.py
@@ -1,2 +1,5 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
m1a = 1
m1b = 2
diff --git a/tests/farm/html/src/m2.py b/tests/farm/html/src/m2.py
index ffddf6c..2d13bfe 100644
--- a/tests/farm/html/src/m2.py
+++ b/tests/farm/html/src/m2.py
@@ -1,2 +1,5 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
m2a = 1
m2b = 2
diff --git a/tests/farm/html/src/m3.py b/tests/farm/html/src/m3.py
index 395d7d2..96e8b99 100644
--- a/tests/farm/html/src/m3.py
+++ b/tests/farm/html/src/m3.py
@@ -1,2 +1,5 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
m3a = 1
m3b = 2
diff --git a/tests/farm/html/src/main.py b/tests/farm/html/src/main.py
index ce89446..238d0b5 100644
--- a/tests/farm/html/src/main.py
+++ b/tests/farm/html/src/main.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
import m1
import m2
import m3
diff --git a/tests/farm/html/src/omit4.ini b/tests/farm/html/src/omit4.ini
index 6821ecd..b792e70 100644
--- a/tests/farm/html/src/omit4.ini
+++ b/tests/farm/html/src/omit4.ini
@@ -1,2 +1,5 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
[report]
omit = m2.py
diff --git a/tests/farm/html/src/omit5.ini b/tests/farm/html/src/omit5.ini
index 7e32b41..3d8dbcf 100644
--- a/tests/farm/html/src/omit5.ini
+++ b/tests/farm/html/src/omit5.ini
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
[report]
omit =
fooey
diff --git a/tests/farm/html/src/partial.py b/tests/farm/html/src/partial.py
index 8d62f5c..66dddac 100644
--- a/tests/farm/html/src/partial.py
+++ b/tests/farm/html/src/partial.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# partial branches
a = 3
diff --git a/tests/farm/html/src/run_a_xml_2.ini b/tests/farm/html/src/run_a_xml_2.ini
index 8d28f97..5b5f18d 100644
--- a/tests/farm/html/src/run_a_xml_2.ini
+++ b/tests/farm/html/src/run_a_xml_2.ini
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# Put all the XML output in xml_2
[xml]
output = ../xml_2/coverage.xml
diff --git a/tests/farm/html/src/tabbed.py b/tests/farm/html/src/tabbed.py
index 2035852..e897e9f 100644
--- a/tests/farm/html/src/tabbed.py
+++ b/tests/farm/html/src/tabbed.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# This file should have tabs.
x = 1
if x:
diff --git a/tests/farm/html/src/unicode.py b/tests/farm/html/src/unicode.py
index 08e1b54..37c5533 100644
--- a/tests/farm/html/src/unicode.py
+++ b/tests/farm/html/src/unicode.py
@@ -1,5 +1,8 @@
-# A Python source file with exotic characters.
# -*- coding: utf-8 -*-
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+# A Python source file with exotic characters.
upside_down = "ʎd˙ǝbɐɹǝʌoɔ"
surrogate = "db40,dd00: x󠄀"
diff --git a/tests/farm/html/src/y.py b/tests/farm/html/src/y.py
index a5f5fc7..a50bb62 100644
--- a/tests/farm/html/src/y.py
+++ b/tests/farm/html/src/y.py
@@ -1,3 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
# A test file for XML reporting by coverage.py.
def choice(x):