From: Mark Hymers Date: Wed, 27 Jul 2011 11:52:24 +0000 (+0100) Subject: Move test case for extract_component to be a db test X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bba2bc9904d04cbb9d14cf40e6ab57f22745487;p=dak Move test case for extract_component to be a db test Signed-off-by: Mark Hymers --- diff --git a/tests/test_extract_component_from_section.py b/tests/dbtest_extract_component_from_section.py similarity index 94% rename from tests/test_extract_component_from_section.py rename to tests/dbtest_extract_component_from_section.py index 3493f417..e21c378e 100755 --- a/tests/test_extract_component_from_section.py +++ b/tests/dbtest_extract_component_from_section.py @@ -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 diff --git a/tests/fixtures/dak.conf b/tests/fixtures/dak.conf index 3a728f78..ec88cc1f 100644 --- a/tests/fixtures/dak.conf +++ b/tests/fixtures/dak.conf @@ -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/";