Skip to content

Commit

Permalink
Move tests under the glance namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenisanerd committed Aug 2, 2011
1 parent 99b8a56 commit 327f752
Show file tree
Hide file tree
Showing 31 changed files with 21 additions and 24 deletions.
3 changes: 0 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
include run_tests.sh ChangeLog
include README builddeb.sh
include MANIFEST.in pylintrc
include tests/__init__.py
include tests/stubs.py
include tests/utils.py
include run_tests.py
include glance/registry/db/migrate_repo/migrate.cfg
include glance/registry/db/migrate_repo/versions/*.sql
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import unittest
import urlparse

from tests.utils import execute, get_unused_port
from glance.tests.utils import execute, get_unused_port

from sqlalchemy import create_engine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import tempfile
import unittest

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute


class TestBinGlance(functional.FunctionalTest):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import tempfile
import unittest

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute

FIVE_KB = 5 * 1024
FIVE_GB = 5 * 1024 * 1024 * 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import os
import tempfile

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute

FIVE_KB = 5 * 1024
FIVE_GB = 5 * 1024 * 1024 * 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import os
import unittest

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute


class TestLogging(functional.FunctionalTest):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import unittest

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute


class TestMiscellaneous(functional.FunctionalTest):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
import tempfile
import unittest

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute

FIVE_KB = 5 * 1024
FIVE_GB = 5 * 1024 * 1024 * 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

from sqlalchemy import create_engine

from tests import functional
from tests.utils import execute
from glance.tests import functional
from glance.tests.utils import execute

from glance import client

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/unit/test_api.py → glance/tests/unit/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from glance.common import context
from glance.registry import server as rserver
import glance.registry.db.api
from tests import stubs
from glance.tests import stubs

VERBOSE = False
DEBUG = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from glance.common import exception
import glance.registry.db.api
from glance.registry import client as rclient
from tests import stubs
from glance.tests import stubs


class TestBadClients(unittest.TestCase):
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from glance.common import exception
from glance.store.location import get_location_from_uri
from glance.store.filesystem import Store, ChunkedFile
from tests import stubs
from glance.tests import stubs

FILESYSTEM_OPTIONS = {
'verbose': True,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

from glance.common import exception
import glance.registry.db.migration as migration_api
from tests.utils import execute
from glance.tests.utils import execute


class TestMigrations(unittest.TestCase):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function run_pep8 {
#
PEP8_EXCLUDE=vcsversion.py
PEP8_OPTIONS="--exclude=$PEP8_EXCLUDE --repeat --show-pep8 --show-source"
PEP8_INCLUDE="bin/* glance tests tools setup.py run_tests.py"
PEP8_INCLUDE="bin/* glance tools setup.py run_tests.py"
pep8 $PEP8_OPTIONS $PEP8_INCLUDE
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run(self):
author='OpenStack',
author_email='[email protected]',
url='http://glance.openstack.org/',
packages=find_packages(exclude=['tests', 'bin']),
packages=find_packages(exclude=['bin']),
test_suite='nose.collector',
cmdclass=cmdclass,
include_package_data=True,
Expand Down

0 comments on commit 327f752

Please sign in to comment.