rename test package to tests (problems with pytest dist)
This commit is contained in:
parent
78c85e67ff
commit
1c80226918
2
setup.py
2
setup.py
@ -21,7 +21,7 @@ readme_file = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'REA
|
|||||||
setup(
|
setup(
|
||||||
name = "sqlalchemy-migrate",
|
name = "sqlalchemy-migrate",
|
||||||
version = "0.5.5",
|
version = "0.5.5",
|
||||||
packages = find_packages(exclude=['test*']),
|
packages = find_packages(exclude=['tests*']),
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
description = "Database schema migration for SQLAlchemy",
|
description = "Database schema migration for SQLAlchemy",
|
||||||
long_description = readme_file.read(),
|
long_description = readme_file.read(),
|
||||||
|
@ -6,7 +6,7 @@ from sqlalchemy import *
|
|||||||
from migrate import changeset
|
from migrate import changeset
|
||||||
from migrate.changeset import *
|
from migrate.changeset import *
|
||||||
from migrate.changeset.schema import ColumnDelta
|
from migrate.changeset.schema import ColumnDelta
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestAddDropColumn(fixture.DB):
|
class TestAddDropColumn(fixture.DB):
|
@ -8,7 +8,7 @@ from sqlalchemy.exc import *
|
|||||||
from migrate.changeset import *
|
from migrate.changeset import *
|
||||||
from migrate.changeset.exceptions import *
|
from migrate.changeset.exceptions import *
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class CommonTestConstraint(fixture.DB):
|
class CommonTestConstraint(fixture.DB):
|
@ -9,8 +9,8 @@ from sqlalchemy.orm import create_session
|
|||||||
from sqlalchemy.pool import StaticPool
|
from sqlalchemy.pool import StaticPool
|
||||||
|
|
||||||
from migrate.versioning.util import Memoize
|
from migrate.versioning.util import Memoize
|
||||||
from test.fixture.base import Base
|
from tests.fixture.base import Base
|
||||||
from test.fixture.pathed import Pathed
|
from tests.fixture.pathed import Pathed
|
||||||
|
|
||||||
|
|
||||||
@Memoize
|
@Memoize
|
@ -6,7 +6,7 @@ import sys
|
|||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from test.fixture import base
|
from tests.fixture import base
|
||||||
|
|
||||||
|
|
||||||
class Pathed(base.Base):
|
class Pathed(base.Base):
|
@ -8,7 +8,7 @@ import types
|
|||||||
|
|
||||||
from scripttest import TestFileEnvironment
|
from scripttest import TestFileEnvironment
|
||||||
|
|
||||||
from test.fixture.pathed import *
|
from tests.fixture.pathed import *
|
||||||
|
|
||||||
|
|
||||||
class Shell(Pathed):
|
class Shell(Pathed):
|
@ -1,7 +1,9 @@
|
|||||||
from test import fixture
|
|
||||||
import doctest
|
import doctest
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
from tests import fixture
|
||||||
|
|
||||||
# Collect tests for all handwritten docs: doc/*.rst
|
# Collect tests for all handwritten docs: doc/*.rst
|
||||||
|
|
||||||
dir = ('..','..','docs')
|
dir = ('..','..','docs')
|
@ -4,9 +4,9 @@
|
|||||||
from migrate.versioning import api
|
from migrate.versioning import api
|
||||||
from migrate.versioning.exceptions import *
|
from migrate.versioning.exceptions import *
|
||||||
|
|
||||||
from test.fixture.pathed import *
|
from tests.fixture.pathed import *
|
||||||
from test.fixture import models
|
from tests.fixture import models
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestAPI(Pathed):
|
class TestAPI(Pathed):
|
@ -4,7 +4,7 @@
|
|||||||
from migrate.versioning import cfgparse
|
from migrate.versioning import cfgparse
|
||||||
from migrate.versioning.repository import *
|
from migrate.versioning.repository import *
|
||||||
from migrate.versioning.template import Template
|
from migrate.versioning.template import Template
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestConfigParser(fixture.Base):
|
class TestConfigParser(fixture.Base):
|
@ -1,5 +1,5 @@
|
|||||||
from sqlalchemy import select
|
from sqlalchemy import select
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
class TestConnect(fixture.DB):
|
class TestConnect(fixture.DB):
|
||||||
level=fixture.DB.TXN
|
level=fixture.DB.TXN
|
@ -6,7 +6,7 @@ import os
|
|||||||
from migrate.versioning.genmodel import *
|
from migrate.versioning.genmodel import *
|
||||||
from migrate.versioning.exceptions import *
|
from migrate.versioning.exceptions import *
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestModelGenerator(fixture.Pathed, fixture.DB):
|
class TestModelGenerator(fixture.Pathed, fixture.DB):
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
from migrate.versioning.util.keyedinstance import *
|
from migrate.versioning.util.keyedinstance import *
|
||||||
|
|
||||||
class TestKeydInstance(fixture.Base):
|
class TestKeydInstance(fixture.Base):
|
@ -1,4 +1,4 @@
|
|||||||
from test import fixture
|
from tests import fixture
|
||||||
from migrate.versioning.pathed import *
|
from migrate.versioning.pathed import *
|
||||||
|
|
||||||
class TestPathed(fixture.Base):
|
class TestPathed(fixture.Base):
|
@ -9,7 +9,7 @@ from migrate.versioning.repository import *
|
|||||||
from migrate.versioning.script import *
|
from migrate.versioning.script import *
|
||||||
from nose.tools import raises
|
from nose.tools import raises
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestRepository(fixture.Pathed):
|
class TestRepository(fixture.Pathed):
|
@ -1,7 +1,12 @@
|
|||||||
from test import fixture
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import os,shutil
|
||||||
|
|
||||||
|
from tests import fixture
|
||||||
from migrate.versioning.schema import *
|
from migrate.versioning.schema import *
|
||||||
from migrate.versioning import script
|
from migrate.versioning import script
|
||||||
import os,shutil
|
|
||||||
|
|
||||||
class TestRunChangeset(fixture.Pathed,fixture.DB):
|
class TestRunChangeset(fixture.Pathed,fixture.DB):
|
||||||
level=fixture.DB.CONNECT
|
level=fixture.DB.CONNECT
|
@ -9,7 +9,7 @@ from migrate.versioning import script, exceptions, schemadiff
|
|||||||
|
|
||||||
from sqlalchemy import *
|
from sqlalchemy import *
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestControlledSchema(fixture.Pathed, fixture.DB):
|
class TestControlledSchema(fixture.Pathed, fixture.DB):
|
@ -1,9 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
from sqlalchemy import *
|
from sqlalchemy import *
|
||||||
from test import fixture
|
|
||||||
from migrate.versioning import genmodel, schemadiff
|
|
||||||
from nose.tools import eq_
|
from nose.tools import eq_
|
||||||
|
from migrate.versioning import genmodel, schemadiff
|
||||||
|
|
||||||
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestSchemaDiff(fixture.DB):
|
class TestSchemaDiff(fixture.DB):
|
@ -10,7 +10,7 @@ from sqlalchemy import MetaData, Table
|
|||||||
from migrate.versioning.repository import Repository
|
from migrate.versioning.repository import Repository
|
||||||
from migrate.versioning import genmodel, shell, api
|
from migrate.versioning import genmodel, shell, api
|
||||||
from migrate.versioning.exceptions import *
|
from migrate.versioning.exceptions import *
|
||||||
from test.fixture import Shell, DB, usedb
|
from tests.fixture import Shell, DB, usedb
|
||||||
|
|
||||||
|
|
||||||
class TestShellCommands(Shell):
|
class TestShellCommands(Shell):
|
@ -8,7 +8,7 @@ import migrate.versioning.templates
|
|||||||
from migrate.versioning.template import *
|
from migrate.versioning.template import *
|
||||||
from migrate.versioning import api
|
from migrate.versioning import api
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestTemplate(fixture.Pathed):
|
class TestTemplate(fixture.Pathed):
|
@ -5,7 +5,7 @@ import os
|
|||||||
|
|
||||||
from sqlalchemy import *
|
from sqlalchemy import *
|
||||||
|
|
||||||
from test import fixture
|
from tests import fixture
|
||||||
from migrate.versioning.util import *
|
from migrate.versioning.util import *
|
||||||
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from test import fixture
|
|
||||||
from migrate.versioning.version import *
|
from migrate.versioning.version import *
|
||||||
from migrate.versioning.exceptions import *
|
from migrate.versioning.exceptions import *
|
||||||
|
|
||||||
|
from tests import fixture
|
||||||
|
|
||||||
|
|
||||||
class TestVerNum(fixture.Base):
|
class TestVerNum(fixture.Base):
|
||||||
def test_invalid(self):
|
def test_invalid(self):
|
Loading…
x
Reference in New Issue
Block a user