[Python-checkins] distutils2: first tests for pypi simple API

tarek.ziade python-checkins at python.org
Sun Jul 4 11:48:39 CEST 2010


tarek.ziade pushed 031d3246aa0d to distutils2:

http://hg.python.org/distutils2/rev/031d3246aa0d
changeset:   298:031d3246aa0d
user:        Alexis Metaireau <ametaireau at gmail.com>
date:        Thu Jun 03 17:45:35 2010 +0200
summary:     first tests for pypi simple API
files:       src/distutils2/tests/test_pypi_simple.py

diff --git a/src/distutils2/tests/test_pypi_simple.py b/src/distutils2/tests/test_pypi_simple.py
--- a/src/distutils2/tests/test_pypi_simple.py
+++ b/src/distutils2/tests/test_pypi_simple.py
@@ -98,11 +98,36 @@
         # and returned the most recent one
         self.assertEqual(last_distribution.version, '2.0.1')
 
-    def test_process_external_pages(self):
+    @use_pypi_server("with_external_pages")
+    def test_process_external_pages(self, server):
         """If the index provides links external to the pypi index, 
         they need to be processed, in order to discover new distributions.
         """
-        pass
+
+    @use_pypi_server()
+    def test_scan_all(self, server):
+        """Test that we can process the whole index and discover all related
+        links.
+
+        """
+        # FIXME remove?
+
+    @use_pypi_server("with_external_pages")
+    def test_disable_external_pages(self, server):
+        """Test that when we tell the simple client to not retreive external
+        urls, it does well.""" 
+    
+    @use_pypi_server()
+    def test_process_index(self, server):
+        """Test that we can process a simple given string and find related links
+        to distributions.
+        """
+    
+    @use_pypi_server()
+    def test_process_url(self, server):
+        """Test that we can process an alternative url (not pypi related) to
+        find links in it.
+        """
     
     @use_pypi_server(static_filesystem_paths=["test_link_priority"],
         static_uri_paths=["simple", "external"])

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list