Delete some unwanted tests; delay import for tempmon session
view config can now depend on rattail config, and tests don't like that... but they didn't really do anything that useful anyway i think
This commit is contained in:
parent
d9f6a7201e
commit
f2b5e2302a
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2018 Lance Edgar
|
# Copyright © 2010-2020 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -26,8 +26,6 @@ Common stuff for tempmon views
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import
|
from __future__ import unicode_literals, absolute_import
|
||||||
|
|
||||||
from rattail_tempmon.db import Session as RawTempmonSession
|
|
||||||
|
|
||||||
from webhelpers2.html import HTML
|
from webhelpers2.html import HTML
|
||||||
|
|
||||||
from tailbone import views, grids
|
from tailbone import views, grids
|
||||||
|
@ -41,7 +39,8 @@ class MasterView(views.MasterView):
|
||||||
Session = TempmonSession
|
Session = TempmonSession
|
||||||
|
|
||||||
def get_bulk_delete_session(self):
|
def get_bulk_delete_session(self):
|
||||||
return RawTempmonSession()
|
from rattail_tempmon.db import Session
|
||||||
|
return Session()
|
||||||
|
|
||||||
def render_probes(self, obj, field):
|
def render_probes(self, obj, field):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
from . import TestCase
|
|
||||||
|
|
||||||
|
|
||||||
class RootTests(TestCase):
|
|
||||||
"""
|
|
||||||
Test root module.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def test_includeme(self):
|
|
||||||
self.config.include('tailbone')
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
from . import TestCase
|
|
||||||
|
|
||||||
|
|
||||||
class ViewTests(TestCase):
|
|
||||||
"""
|
|
||||||
Test root views module.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def test_includeme(self):
|
|
||||||
self.config.include('tailbone.views')
|
|
Loading…
Reference in a new issue