summaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-14 21:11:41 -0500
committerMichael Merickel <michael@merickel.org>2018-10-14 21:11:41 -0500
commit3670c2cdb732d378ba6d38e72e7cd875ff726aa9 (patch)
tree5213452a778c992d42602efe7d3b3655a349abd5 /tests/fixtures
parent2b024920847481592b1a13d4006d2a9fa8881d72 (diff)
downloadpyramid-3670c2cdb732d378ba6d38e72e7cd875ff726aa9.tar.gz
pyramid-3670c2cdb732d378ba6d38e72e7cd875ff726aa9.tar.bz2
pyramid-3670c2cdb732d378ba6d38e72e7cd875ff726aa9.zip
move tests out of the package
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/dummy.ini4
-rw-r--r--tests/fixtures/manifest.json4
-rw-r--r--tests/fixtures/manifest2.json4
-rw-r--r--tests/fixtures/minimal.jpgbin0 -> 631 bytes
-rwxr-xr-xtests/fixtures/minimal.pdfbin0 -> 1054 bytes
-rw-r--r--tests/fixtures/minimal.txt1
-rw-r--r--tests/fixtures/minimal.xml1
-rw-r--r--tests/fixtures/nonminimal.txt1
-rw-r--r--tests/fixtures/static/.hiddenfile2
-rw-r--r--tests/fixtures/static/arcs.svg.tgz73
-rw-r--r--tests/fixtures/static/index.html1
-rw-r--r--tests/fixtures/static/subdir/index.html1
12 files changed, 92 insertions, 0 deletions
diff --git a/tests/fixtures/dummy.ini b/tests/fixtures/dummy.ini
new file mode 100644
index 000000000..bc2281168
--- /dev/null
+++ b/tests/fixtures/dummy.ini
@@ -0,0 +1,4 @@
+[app:myapp]
+use = call:pyramid.tests.test_paster:make_dummyapp
+
+foo = %(bar)s
diff --git a/tests/fixtures/manifest.json b/tests/fixtures/manifest.json
new file mode 100644
index 000000000..0a43bc5e3
--- /dev/null
+++ b/tests/fixtures/manifest.json
@@ -0,0 +1,4 @@
+{
+ "css/main.css": "css/main-test.css",
+ "images/background.png": "images/background-a8169106.png"
+}
diff --git a/tests/fixtures/manifest2.json b/tests/fixtures/manifest2.json
new file mode 100644
index 000000000..fd6b9a7bb
--- /dev/null
+++ b/tests/fixtures/manifest2.json
@@ -0,0 +1,4 @@
+{
+ "css/main.css": "css/main-678b7c80.css",
+ "images/background.png": "images/background-a8169106.png"
+}
diff --git a/tests/fixtures/minimal.jpg b/tests/fixtures/minimal.jpg
new file mode 100644
index 000000000..1cda9a53d
--- /dev/null
+++ b/tests/fixtures/minimal.jpg
Binary files differ
diff --git a/tests/fixtures/minimal.pdf b/tests/fixtures/minimal.pdf
new file mode 100755
index 000000000..e267be996
--- /dev/null
+++ b/tests/fixtures/minimal.pdf
Binary files differ
diff --git a/tests/fixtures/minimal.txt b/tests/fixtures/minimal.txt
new file mode 100644
index 000000000..18832d351
--- /dev/null
+++ b/tests/fixtures/minimal.txt
@@ -0,0 +1 @@
+Hello.
diff --git a/tests/fixtures/minimal.xml b/tests/fixtures/minimal.xml
new file mode 100644
index 000000000..1972c155d
--- /dev/null
+++ b/tests/fixtures/minimal.xml
@@ -0,0 +1 @@
+<hello/> \ No newline at end of file
diff --git a/tests/fixtures/nonminimal.txt b/tests/fixtures/nonminimal.txt
new file mode 100644
index 000000000..9de95ec92
--- /dev/null
+++ b/tests/fixtures/nonminimal.txt
@@ -0,0 +1 @@
+Hello, ${name}!
diff --git a/tests/fixtures/static/.hiddenfile b/tests/fixtures/static/.hiddenfile
new file mode 100644
index 000000000..86d345000
--- /dev/null
+++ b/tests/fixtures/static/.hiddenfile
@@ -0,0 +1,2 @@
+<html>I'm hidden</html>
+
diff --git a/tests/fixtures/static/arcs.svg.tgz b/tests/fixtures/static/arcs.svg.tgz
new file mode 100644
index 000000000..376c42ac8
--- /dev/null
+++ b/tests/fixtures/static/arcs.svg.tgz
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ id="canvas"
+ width="2000"
+ height="2000"
+ onload="init()">
+
+ <style type="text/css">
+ .ellipse
+ {
+ stroke: red;
+ stroke-width: 2;
+ fill: blue;
+ fill-opacity: 0.1;
+ }
+
+ .axes
+ {
+ stroke: blue;
+ stroke-width: 1;
+ }
+ </style>
+
+ <script>
+ <![CDATA[
+ var COLS = 4;
+ var ROWS = 4;
+ var RX = 80;
+ var RY = 30;
+
+ function init()
+ {
+ var canvas = document.getElementById("canvas");
+
+ var angleStep = 360.0/(COLS*ROWS);
+ var spacing = 2*Math.max(RX, RY)+10;
+ for (var c = 0; c < COLS; ++c) {
+ for (var r = 0; r < ROWS; ++r) {
+ var ellipse = createEllipse((c+ COLS*r)*angleStep, spacing*(c+0.5), spacing*(r+0.5), RX, RY);
+ canvas.appendChild(ellipse);
+ }
+ }
+ }
+
+ function createEllipse(phi, x, y, rx, ry)
+ {
+ var degPerRad = Math.PI/180.0;
+ var e1x = rx*Math.cos(phi*degPerRad);
+ var e1y = rx*Math.sin(phi*degPerRad);
+ var e2x = ry*Math.cos((phi+90)*degPerRad);
+ var e2y = ry*Math.sin((phi+90)*degPerRad);
+
+ var axes = document.createElementNS("http://www.w3.org/2000/svg", "path");
+ axes.setAttribute("class", "axes");
+ axes.setAttribute("d", "M"+x+","+y+" l"+e1x+","+e1y+"M"+x+","+y+" l"+e2x+","+e2y);
+ var ellipse = document.createElementNS("http://www.w3.org/2000/svg", "path");
+ ellipse.setAttribute("class", "ellipse");
+ ellipse.setAttribute("d", "M" + (x+e1x) + "," + (y+e1y) +
+ "A" + rx + "," + ry + " " + phi + " 0,1 " + (x+e2x) + "," + (y+e2y) +
+ "A" + rx + "," + ry + " " + phi + " 1,1 " + (x+e1x) + "," + (y+e1y) +"z");
+
+ var group = document.createElementNS("http://www.w3.org/2000/svg", "g");
+ group.appendChild(axes);
+ group.appendChild(ellipse);
+ return group;
+ }
+
+ ]]>
+ </script>
+</svg>
diff --git a/tests/fixtures/static/index.html b/tests/fixtures/static/index.html
new file mode 100644
index 000000000..0470710b2
--- /dev/null
+++ b/tests/fixtures/static/index.html
@@ -0,0 +1 @@
+<html>static</html> \ No newline at end of file
diff --git a/tests/fixtures/static/subdir/index.html b/tests/fixtures/static/subdir/index.html
new file mode 100644
index 000000000..bb84fad04
--- /dev/null
+++ b/tests/fixtures/static/subdir/index.html
@@ -0,0 +1 @@
+<html>subdir</html>