]> err.no Git - dak/commitdiff
Move test case for extract_component to be a db test
authorMark Hymers <mhy@debian.org>
Wed, 27 Jul 2011 11:52:24 +0000 (12:52 +0100)
committerMark Hymers <mhy@debian.org>
Wed, 27 Jul 2011 11:52:24 +0000 (12:52 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
tests/dbtest_extract_component_from_section.py [moved from tests/test_extract_component_from_section.py with 94% similarity]
tests/fixtures/dak.conf

similarity index 94%
rename from tests/test_extract_component_from_section.py
rename to tests/dbtest_extract_component_from_section.py
index 3493f41798ea455275c11c3f6a028cc98b88d94e..e21c378e40a5c9a717b41b6949ed278adc6185d8 100755 (executable)
@@ -1,12 +1,12 @@
 #!/usr/bin/env python
 
-from base_test import DakTestCase
+from db_test import DBDakTestCase
 
 import unittest
 
 from daklib.utils import extract_component_from_section
 
-class ExtractComponentTestCase(DakTestCase):
+class ExtractComponentTestCase(DBDakTestCase):
     """
     prefix: non-US
     component: main, contrib, non-free
index 3a728f78c1a0911ae74cb62fbab32b32a5a60d66..ec88cc1f4a57eafb37f1557bc8a4591b89b97cc7 100644 (file)
@@ -1,23 +1,3 @@
-// For extract_component_from_section tests
-
-Component
-{
-  main
-  {
-       Description "Main";
-  };
-
-  contrib
-  {
-       Description "Contrib";
-  };
-
-  non-free
-  {
-       Description "Software that fails to meet the DFSG";
-  };
-};
-
 Dir
 {
   Root "tests/fixtures/ftp/";