From 5bba2bc9904d04cbb9d14cf40e6ab57f22745487 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 27 Jul 2011 12:52:24 +0100 Subject: [PATCH] Move test case for extract_component to be a db test Signed-off-by: Mark Hymers --- ... dbtest_extract_component_from_section.py} | 4 ++-- tests/fixtures/dak.conf | 20 ------------------- 2 files changed, 2 insertions(+), 22 deletions(-) rename tests/{test_extract_component_from_section.py => dbtest_extract_component_from_section.py} (94%) 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/"; -- 2.39.2