index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
tests
/
pyquick
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'tests/pyquick')
-rw-r--r--
tests/pyquick/test_index_rest.py
13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pyquick/test_index_rest.py b/tests/pyquick/test_index_rest.py
new file mode 100644
index 00000000..be0bf183
--- /dev/null
+++ b/
tests/pyquick/test_index_rest.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+# coding: utf-8
+#
+#
+
+import requests
+
+HOST = 'http://localhost:3000'
+
+def test_index_get():
+ r = requests.get(HOST + '/')
+ assert r.status_code == 200
+