From e037fe05ff1f0c2893b3f51e06e0261ca4245d63 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 7 Jun 2016 12:55:32 +1200 Subject: Migrate pathod docs to Sphinx All the content of the pathod docs are moved into Sphinx. The interactive format has not translated well to static docs, and there's still a lot of rewriting, format fixing, structuring, etc to be done. --- pathod/templates/examples_context.html | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 pathod/templates/examples_context.html (limited to 'pathod/templates/examples_context.html') diff --git a/pathod/templates/examples_context.html b/pathod/templates/examples_context.html deleted file mode 100644 index 20b02c39..00000000 --- a/pathod/templates/examples_context.html +++ /dev/null @@ -1,24 +0,0 @@ -
import requests
-from pathod import test
-
-
-def test_simple():
-    """
-        Testing the requests module with
-        a pathod context manager.
-    """
-    # Start pathod in a separate thread
-    with test.Daemon() as d:
-        # Get a URL for a pathod spec
-        url = d.p("200:b@100")
-        # ... and request it
-        r = requests.put(url)
-
-        # Check the returned data
-        assert r.status_code == 200
-        assert len(r.content) == 100
-
-        # Check pathod's internal log
-        log = d.last_log()["request"]
-        assert log["method"] == "PUT"
-
-- cgit v1.2.3