Browse Source

added initial test structure

Daniel Roesler 9 years ago
parent
commit
d866955185
4 changed files with 23 additions and 0 deletions
  1. 10 0
      .travis.yml
  2. 2 0
      README.md
  3. 0 0
      tests/__init__.py
  4. 11 0
      tests/test_module.py

+ 10 - 0
.travis.yml

@@ -0,0 +1,10 @@
+language: python
+python:
+  - "2.6"
+  - "2.7"
+  - "3.2"
+  - "3.3"
+  - "3.4"
+  - "3.5"
+  - "nightly"
+script: python -m unittest discover

+ 2 - 0
README.md

@@ -1,5 +1,7 @@
 # acme-tiny
 # acme-tiny
 
 
+[![Build Status](https://travis-ci.org/diafygi/acme-tiny.svg)](https://travis-ci.org/diafygi/acme-tiny)
+
 This is a tiny, auditable script that you can throw on your server to issue
 This is a tiny, auditable script that you can throw on your server to issue
 and renew [Let's Encrypt](https://letsencrypt.org/) certificates. Since it has
 and renew [Let's Encrypt](https://letsencrypt.org/) certificates. Since it has
 to be run on your server and have access to your private Let's Encrypt account
 to be run on your server and have access to your private Let's Encrypt account

+ 0 - 0
tests/__init__.py


+ 11 - 0
tests/test_module.py

@@ -0,0 +1,11 @@
+import unittest
+import acme_tiny
+
+class TestModule(unittest.TestCase):
+    "Tests for acme_tiny.get_crt()"
+
+    def setUp(self):
+        self.CA = "https://acme-staging.api.letsencrypt.org"
+
+    def test_ca(self):
+        self.assertEqual(self.CA, "https://acme-staging.api.letsencrypt.org")