Remove unused test fixtures
This commit is contained in:
parent
36b9e00dc9
commit
49da9776e7
|
@ -73,7 +73,7 @@ install_requires =
|
||||||
zope.sqlalchemy
|
zope.sqlalchemy
|
||||||
|
|
||||||
tests_require = Tailbone[tests]
|
tests_require = Tailbone[tests]
|
||||||
test_suite = nose.collector
|
test_suite = tests
|
||||||
packages = find:
|
packages = find:
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
zip_safe = False
|
zip_safe = False
|
||||||
|
@ -87,7 +87,7 @@ exclude =
|
||||||
|
|
||||||
[options.extras_require]
|
[options.extras_require]
|
||||||
docs = Sphinx; sphinx-rtd-theme
|
docs = Sphinx; sphinx-rtd-theme
|
||||||
tests = coverage; fixture; mock; nose; pytest; pytest-cov
|
tests = coverage; mock; pytest; pytest-cov
|
||||||
|
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
|
|
||||||
import fixture
|
|
||||||
|
|
||||||
from rattail.db import model
|
|
||||||
|
|
||||||
|
|
||||||
class DepartmentData(fixture.DataSet):
|
|
||||||
|
|
||||||
class grocery:
|
|
||||||
number = 1
|
|
||||||
name = 'Grocery'
|
|
||||||
|
|
||||||
class supplements:
|
|
||||||
number = 2
|
|
||||||
name = 'Supplements'
|
|
||||||
|
|
||||||
|
|
||||||
def load_fixtures(engine):
|
|
||||||
|
|
||||||
dbfixture = fixture.SQLAlchemyFixture(
|
|
||||||
env={
|
|
||||||
'DepartmentData': model.Department,
|
|
||||||
},
|
|
||||||
engine=engine)
|
|
||||||
|
|
||||||
data = dbfixture.data(DepartmentData)
|
|
||||||
|
|
||||||
data.setup()
|
|
Loading…
Reference in a new issue