-<<<<<<< HEAD
-
-
-gogs
-*.exe
-*.exe~
.DS_Store
*.db
*.log
*.iml
public/img/avatar/
-=======
->>>>>>> b4db9f67548a41922f1b337daf9c9d2b975b55c4
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
_testmain.go
-*.exe
\ No newline at end of file
+*.exe
+*.exe~
+gogs
+__pycache__
--- /dev/null
+command: python -m pytest {}
+include: ^test_.*\.py$
+path: ./
+depth: 1
+verbose: true
+timeout: 1m
+reload: false
+html: test.html
+notify: []
--- /dev/null
+## gogs test
+
+this is for developers
+
+## prepare environment
+ # install python dependency
+ pip install pytest
+ # install basic test tool
+ go get -u github.com/shxsun/travelexec
+ # start gogs server
+ gogs web
+
+## start test
+ travelexec
--- /dev/null
+#!/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
+